 
 // ================= ROTATE FUNCTIONS ================== //
 
-void attachServos() {
-    //this function attaches all servos
-    //it's called at the beginning
-  
-  const int DELAY_BTWN_ATTACH = 250;
-  
-  for (int i = 0; i < SERVO_NUMBER; i++) {
-    servoarray[i].attach(servoPINS[i]);
-    delay(DELAY_BTWN_ATTACH);
-  }
-}
-
 void moveChannel() {
   //Move only the specified channel (1-SERVO_NUMBER)
   int channel;


void moveServoGroup(int bat[]) {
    //move a group of servo
    //bat is an array containing the channels to be moved
  
  if ( DEBUG_MODE ) { 
    
    Serial.print("Moving: ");
    for (int i = 0; i<GROUP_SIZE; i++) {
      Serial.print(String(bat[i]) + " ");
    }
    Serial.println("");
  }
  
  for( int s = 0; s < SHAKE; s++)

  //move a single servo
  if ( USE_SERVO )
  {
    servoarray[channel-1].attach(servoPINS[channel-1]);
    for( int s = 0; s < SHAKE; s++)
    {
      servoarray[channel-1].write(0);
