[Pathfinding] Made identifySuccessor and jump functions.