Python 3 solution to the 15-puzzle problem.