Evolutionary Function and Therapeutic Implications of Reactions to Success and Failure