N-Puzzle Solving Program