Added locked mode for gridworld