Ex-boyfriend talk. Please help me!!

Anna
So my ex boyfriend did me pretty bad and I sometimes find my self still thinking about him and I'm dating someone else right now. How should I solve this problem?