Is it good that the person you were with was going to go see you but you broke up with him, and you're best friend that you've knew for 5 years now says you're a bad person because you broke up with him and they go out together? :/
She is not a real friend. Your should be by your side no matter what. And most definitely broke the friend code. And the boy is a friend hopper. They are both wrong.