I neeed help!!

Okay so I  am 16 years old a sophomore in HS. Ik this sounds super dramatic for my age and everything lol but I'm in need of some help cause I don't know who to talk to. was in a wonderful relationship for six months and I went on a beach vacation over spring break with family and friends. My closest guy friend came with us , we've always kinda been flirty. Over the trip I felt myself beggininng to like him and I felt soooo guilty . I didn't cheat on him I would never do that. But I defiantly emotionally cheated which in some cases I feel can be worse. He told me he liked me so when I got home I told my boyfriend what was going on. He was upset but was taking it well. We broke up because I felt it was unfair to stay with him if I was having feelings for someone else. But now I'm stuck in the middle I don't know what to do. I feel like I like them both and ughhh I'm so stressed out I need help . Problem tho the boy I went on vacation with, my best friend who was also on the trip has been in love with him for 3 years and he is also a good friend of my boyfriend so if I ever did anything with him it would cause so Much drama. I thought the feelings would go away once I came home but they're still there. Thank you! Just need some advice