 
 
  
-// if(Serial.available())
- //{
-  //Serial.println("Goodnight moon!");
+ if(Serial.available())
+ {
+ 
   int l = left.read();
   int r = right.read();
   int c = center.read();

  motors.brake();

}

void moveLeft(char d) {
  leftSpeed = -(SPEED - 50);
  if (d > 0) {
    
    motors.leftDrive(-255);
    motors.leftMotor(80); // Turn on left motor counter clockwise medium power (motorPower = 150)     
  delay(1000);       // for 1000 ms.
  } else {
    motors.drive(80);    //motors.rightMotor(150); // Turn on right motor clockwise medium power (motorPower = 150) 

  }
}

void moveRight(char d) {
   rightSpeed = SPEED - 50;
  if (d > 0) {
    motors.rightDrive(-255);
    motors.rightMotor(80); // Turn on right motor clockwise medium power (motorPower = 150) 
    
  } else {
   motors.drive(80);
  }
