making a file for solving mazes