bool checker() {
Serial.println(random_color);
delay(6000);

uint8_t touched = cap.touched();

//stay in loop until a touch is sensed
while (touched == 0) {
// No touch detected
touched = cap.touched();
}

red_input = "";
blue_input = "";
yellow_input = "";
//only inputs 1, 4, and 7 are assigned to colors
for (uint8_t i=0; i<8; i++) {
//after we detect a touch
if (touched & (1 << i)) {
//we take a closer look at the individual color

//Red
if (i == 0){
red_input = "r";
Serial.println("Red Touched");
} else{
red_input = "";
}

//Blue
if (i == 3){
blue_input = "b";
Serial.println("Blue Touched");
} else{
blue_input = "";
}

//Yellow
if (i == 6){
yellow_input = "y";
Serial.println("Yellow Touched");
} else{
yellow_input = "";
}
delay(50);
//Serial.print("C"); Serial.print(i+1); Serial.print("\t");
}
}

//Checks whether color matches or not
//strings together the inputs
selected_color = red_input + blue_input + yellow_input;

//If selected string matches random input then we gain points
//until we get to 5 points
if (random_color == selected_color){
bool result = true;
Serial.println("Correct");
}
else{
Serial.println("You fail...");
bool result = false;
}
delay(50);
return result;
}