Rat In A Maze (Backtracking)

How do I print only one solution.