The role of response and reward in spatial memory