[Pathfinding] Fixed direction(). Changed parseDirection() to jumpDirection().