Fixed some problems regarding the construction of the maze in the Maze class.