       analogWrite(r1_motor, xDir);
       analogWrite(r2_motor, 0);
     }
-    else if(xDir < -10)
+    else if(xDir < -50)
     {
       analogWrite(l2_motor, abs(xDir));
       analogWrite(l1_motor, abs(0));

      radio.read(msg, 1);
      theChar = msg[0];
    }
  if(bufferVal <= 4)
  {
    int delimiter = theMessage.indexOf(',');
    
    

      analogWrite(r2_motor, abs(0));      
    }

//    //Serial.println(theMessage);
//    Serial.print(buttonVal); Serial.print('\t');
//    Serial.print(xDir); Serial.print('\t');
//    Serial.println(yDir);


    theMessage = "";

    
  }
  //delay(1);
}
