Write a program to escape this maze. The maze is stored as a matrix which can be downloed from the code section. The matrix is 254 columns high by 254 rows across. A zero means a path and a value od 255 means there is a wall there. The entrance to the maze is at the matrix position (52,7) and the exit is at (7,155). You can move up, down left or right but you can not cross a wall. Write a program which explores the maze maze2and ultimately finds a way out. A small maze is also given below to try first.


You need to make sure you dont go back on your self. Firefighters move around smokey rooms by allways touching a wall with the right hand.