added  None state when terminating in gridworld