A neural model of proximity to reward