Program to solve simple ASCII text mazes