Uses A* to solve the nPuzzle