pub fn in_grid( source: (usize, usize), target: (usize, usize), grid: &Grid, path_finding: Box<dyn PathFinding>, directions: &[Direction], ) -> Graph