check pathfinding trough collision module