A* for all paths works