worked on pathfinding