- working prototype for pathfinding