I like this guy...but I have a boyfriend

I have a boyfriendish and I love and care about him so much but it's long distance and I feel like my feelings have changed but I know if I see him again it will be okay again? like how it was before but, I have this guy friend and we've gotten close over the past few months and I think he's such a lovely guy and I've denied my feelings for him for a long time but I realised recently that I did have feelings and I shouldn't hide them but i found out he had sex with my TAKEN friend and he's liked her for ages and it just kind of hurts and I don't know what to do.