update gridworld