The Evolutionary Purpose of Difficult Thoughts and Emotions