In need of coding help

  if(side == 1){
  //leftside of screen

  lig(2,1);

  }
  else if(side == 2){
  //right side of screen
  }
}
void autonomous(void) {  
  if(side == 1){
  //leftside of screen

  lig(2,0);

  }
  else if(side == 2){
  //right side of screen
  }
}

In the first snipit of code I am showing you the brain timer does not stop at all and I am guessing it is because the ball never gets counted? But in the second piece of code the brain timer works and i did not change anything except for the amount of balls wanted to pass through.