Thoughts are fine when you don't confuse them with who you are, and then thoughts are not a problem. Thinking is a wonderful tool to create things in this world. It only becomes problematic and a source of suffering when you confuse thinking with who you are.