Need help with complicated relationship
So I was in a relationship with this guy and he was so nice and kind at first but then became an asswhole but also had those moments where he was nice and sweet and there for me but I loved him no matter what... but I broke up with him... I started talking to his friend and we became really good friends and then we started dating... we've been in a relationship for a year... But secretly now I'm talking to my exboyfriend and I realize I'm still in love with him... I need help I don't know what to do...