static bool IsNearX1 (int pos, int x1, int x2) { return System.Math.Abs (x1 - pos) < System.Math.Abs (x2 - pos); }