Final A* not working