Resolve fifteen game with A*