Revert "small fix (error + warnings)"

This reverts commit f9a414077df10225fa1abfeabc29574e180bef15.
Revert "added part of pathfindingFix(still working on it)"

This reverts commit 6bf7952b555099d7191742e1f6bba4abe9450e49.