if ((UpperLeft == TRUE) && (UpperRight == TRUE) && (LowLeft == TRUE) && (LowRight == TRUE) && (Left == TRUE) && (Right == TRUE)) { exit(0); } else { exit(1); }