Function simulate

Source
pub(super) fn simulate(input: &Grid<u8>, part_two: bool, limit: u8) -> u32