First time didn't go as planned

okay so my bf came over my house and it was my first time but it wasnt his. he tried to put his penis in multiple time: doggy, missionary, me climbing on top of him but it was not going in. I felt it sometimes cause it was starting to hurt but i told him to stop cause i didnt want to hurt him. what would you advice to do next time? Comment below