 void checkSerial(){
   //Check for input
   if (Serial.available()){
-    delay(1);
+    delay(100);
 
     char FirstChar=Serial.read(); //Get the first character
 
     //Get the rest of the string, except for the '=' sign
-    i=0;
+    byte i=0;
+
     Serial.read(); //Waste one character
     while (Serial.available()){
       StringIn[i++]=Serial.read();

  if (shooterNum<1 || shooterNum>3) { //Check that the shooter number is valid
    Serial.print("Unrecognized shooter Num: ");
    Serial.println(shooterNum);
    //Send unrecognized shooter num feedback to laptop
    sendMessage(0xE1,shooterNum);
  }
  else{
    digitalWrite(solenoidPins[shooterNum],HIGH); //Activate the solenoid: open the passage
