They headlocked you on the ground. You were able to make a frame to keep them from smashing down their full weight onto you. You shrimp out and go for the standard scissor choke. Problem is, they turned their head, and you no longer have the choke.
So, now you just have to reposition yourself. Hug their abdomen, take your bottom leg out, and then the top leg, and then have your right hand under their arm, and left under their neck, clamping your hands together to be in a solid Side Mount position.
Follow me for more Martial Arts Instruction on social media:
Twitter - @AustinKungFu
Instagram - @AustinKungFuAcademy
Facebook - Facebook.com/AustinKungFuAcademy