Framework for gridworld