pub fn part1(grid: &Grid<u8>) -> usize
Count distinct positions in the guard’s path, which will eventually leave the grid.