Solves mazes given in text files