Making an agreement with your brain to only give you useful thoughts or joyful thoughts is key to reclaiming control of your thinking.