int chebyshev(GridPoint lhs, GridPoint rhs) { return max((lhs.x - rhs.x).abs(), (lhs.y - rhs.y).abs()); }