What the h is going through his mind?

So my ex boyfriend (dated 5+years) broke up with me because he said he no longer felt the same way. He has a girlfriend now but he has recently started messaging me again and has been messaging me nsfw things. He’s practically cheating on the girl he cheat on me with, with me. What could possibly be going through his head?