public override bool Equals(object obj) { Position other = (Position)obj; return (other.x == this.x && other.y == this.y); }