Add a debugging routine to Maze