As the thoughts so the mind. If thoughts are good, mind is good. If thoughts are bad, the mind is called bad.