Go for a walk - whether that's outside, or just pacing in your room. What topic does your mind keep wandering off towards?