Reducing the code size for the maze.