how to avoid bad thoughts in mind