public static bool operator ==(Position pos1, Position pos2) { return (pos1.X == pos2.X && pos1.Y == pos2.Y); }