fn rounds_until_stable(map: &HashSet<(isize, isize)>) -> usize