Add the base clases to implement A* path finder.