Solves a given maze (read from a txt file)