Implementation of Jump Point Search pathfinding algorithm.