adds final line to maze.txt