added intialize pathfinding