*/
@SuppressWarnings("unchecked")
@Override
public void run() {
AStar aStar = new AStar();
aStar.nodes.addAll(this._map.getNodes());
List<Node> nodes = aStar.getPath(this._from, this._to);
List<Position> positions = this._map.nodesToPositions(nodes);
this._listener.pathfindingFinished(positions);
}