added part of pathfindingFix(still working on it)