Help!!! What do I do?

My ex and I have been on a break for like a week, he said some very harsh things. And I started talking to another guy and we are friends but flirt occasionally. My ex has also started talking to me again and flirting and Idek what I want anymore please help any advice will help.