Milan catch six-goal thriller