8 Puzzle Solver Python