Read story books, go for a movie, dont stay too long inside the
toilet.
Go out with your friends, sleep early. Dont surf porn
website.
Stay together with your family members. Do not be alone in the
house.
Or better still, do some chanting.
Only then, you will not think of that.
Hope that helps.