Ugh just venting

Ok so I had a guy who I really like but really just wanted sex and I stoped talking to him and I got a real boyfriend and was happy for about a month then he left me and I was really mentally exhausted and unstable. Bottom lines I was pissed and sad as hell. But while I was getting over him I went back to the first guy and lost my vCard and gave him head a few times but I’m still not over the second guy but I’m not over the first guy either. But recently my best guy friend asked me out and I said yes for some dumb reason and I don’t like that even though I liked the attention. I really need help getting out of this without losing my best friend. Help me please!!