The role of endorphins in behavior