Code that gives the solution to any 3x3 sliding puzzle