   }
 
   else if(oldSpeed == hiVal){
-    if(probability < 20){
+    if(probability < 50){
       return midVal;
     }
     else{

void loop() {
  static unsigned long timePassed;
  static int changeVal;
  delay(10);



  }

  else if(oldSpeed == midVal){
    if(probability < 40){
      return hiVal;
    }
    else if(probability < 90){
      return midVal;
    }
    else{
