Added MazeGrid class for modelling maze.