How to stop the cycle of negative thinking