Maze generator and solver