code: function getJump(from, toJump) {
      if (from < toJump) return toJump + 1;else if (from > toJump) return toJump - 1;else return toJump;
  }
docs: Takes from position (x or y) and to jump position (x or y) then returns the x or y of the target position.