#6 Added jumpDistance cost and rule