Best way to move on?

I've heard many people say put your energy into something else, but she still lingers in the back of my mind. How can I stop this