use web worker for A* if possible