Revert "[Pathfinding] Removed exists(). Changed nodeList to a set. Fixed some logic. Added JPS info."

This reverts commit 38b05227ad31c9728e57e4130767509d99e46cac.