How the Brain Seeks Pleasure and Avoids Pain