isAfter method

bool isAfter(
  1. Position another
)

Implementation

bool isAfter(Position another) {
  return another.y < y || (another.y == y && another.x < x);
}