Motivation, Emotion, and Goal Direction in Neural Networks