     int obytes = strlen(buf);
     Serial.readBytes(&buf[obytes], available_bytes);
     buf[available_bytes + obytes] = '\0';
-    
     if(strlen(buf) > safesize){
       memmove(buf,&buf[strlen(buf) - safesize],safesize);
       buf[safesize] = '\0';

  rightMotor.Set(0); //(100 MAX FORWARD, -100 MAX BACK)
  
  Serial.begin(57600);
}

void loop() 
{
  readSerial();
  moveMotor();
}

void readSerial()

#include <FRCmotor.h>

int gamemode = 1; // Enables the FRCmotor library

int leftVel = 0;
int rightVel = 0;
int lasttime;

int softstop;

//SerialRead/Write
#define BUFSIZE 256
