Vaahguru jee kaa Khalsa, Vaaheguru jee kee Fateh!
I would suggest doing lot of Sangat of Gursikhs and do naam jaap and Nitnem in their company, and do ardaas/bentee to Guru Sahib.
"Har ke logaa mo kao neeth dasai patwaari
Ooper bhujaa kar main Gur pahe pukaariya tin hoan liyaa ubaari"
It is very hard to control the mind or stop our thoughts, but a constant fight/judh has to be continued along with lot of Sat Sangat and one day Guru Sahib can shower His mercy and clear our mind of bad thoughts!
Vaahguru jee kaa Khalsa, Vaaheguru jee kee Fateh!