Need help with an NES controller code

So where do I put it?

/* MAIN LOOP */
void loop()}

{
  controllerRead();
  String Out = "";
  int length = 1;
 
 
  // A
  if (controllerData1[0] == 0)
  {
    if (Out != "")
    {

That doesn't seem to work. Sorry for being a noob on this guys.