Function dfs

Source
fn dfs(grid: &mut [bool], index: usize)
Expand description

Flood fill that explores the connected squares in the grid.