Compares coordinates for equality.
@override bool operator ==(Object other) { if (other is Coordinate) { return this.x == other.x && this.y == other.y; } else { return false; } }