If I was in your situation, I would've talked to the teacher or my guidance counselor. If there is more than one period of the mass class you were taking, you could've asked your counselor to change your class schedule, so you wouldn't be distracted.