bool isPositionCenter(double x, double y) { if ((x > 210.0 && x < 250.0) && (y > 370.0 && y < 420.0)) return true; return false; }