        cmp::max((self.x - other.x).abs(), (self.y - other.y).abs()) as usize
    }
}

impl PartialOrd for Coord {
    fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
        if self == other {