Calculate A* for all goals, but A* is broken