grid world environment before refactoring