Motivational Learning of Spatial Behavior