Why we need pain to feel happiness