Building the maze solver