fn recurse<F>(p: &Path, bad: &Path, travel_amount: &F)where
    F: Fn(i64, u32) -> (i64, u32),