Beyond Pleasure and Pain: How Motivation Works