Astar works for goals nearby