Solves n x n sliding puzzle and displays shortest tile movements to the goal