Update maze.cpp