astar works on some occasions, not all.