realtime astar calculating