Boy trouble: how do I move on?

So I dated this guy. And it’s been an off and on kind of thing for a while now. Well, we recently broke up.. again. And now he has another girlfriend. And I’m still so hurt by it. I don’t know what to do. It’s been a month already and I can’t seem to get him off my mind. I keep checking all of his social media’s hoping that the lock in his bio will change.. but I also know that he isn’t good for me anymore. Any advice?