Error message byte 2

void loop()
{

  CheckAllEncoders();
  CheckAllButtons();
  CheckAllPotentiometers();

}

}

Extra '}' after loop(). Fix that and check that ALL of your functions have matching brackets. Using Tools->Auto Format on your sketch will help you find such mistakes.