How to stop thinking about your ex?

My ex is trying to get a new significant other and it's only been a month since we broke up. We were together for a year and a half but hes moving on so quick. What should I do to stop thinking what he's doing with her ?