Men ain’t shit

This guy dated this girl who cheated on her ex and he had a bad past two and they lasted for 8 months and they seemed perfectly happy then the girls best friend came in and fucked everything up and got into their relationship theyre now broken up and the girl is heart broken and the guy has moved on and is fine I don’t know if I should stay out or how I should react because that guy is my boyfriends best friend and the guy is my friend also but the same situation happened to me and it killed me so I don’t know what to do I’m lost