       }
     }
 
-    if (display.pressed(B_BUTTON))
+    if (arduboy.pressed(B_BUTTON))
     {
       if (index < 2)
       {

    xb=xPaddle + 5;

    //Release ball if FIRE pressed
    pad3 = display.pressed(B_BUTTON);
    if (pad3 == 1 && oldpad3 == 0)
    {
      released=true;


  ballclock++;

  arduboy.drawPixel(xb,   yb,   1);
  arduboy.drawPixel(xb+1, yb,   1);
  arduboy.drawPixel(xb,   yb+1, 1);
  arduboy.drawPixel(xb+1, yb+1, 1);
}

void drawPaddle()
{
  arduboy.drawRect(xPaddle, 63, 11, 1, 0);
  movePaddle();
  arduboy.drawRect(xPaddle, 63, 11, 1, 1);
}

void drawLives()
{
  sprintf(text, "LIVES:%u", lives);
  arduboy.setCursor(0, 90);
  arduboy.print(text);
}

void drawGameOver()
{
  arduboy.drawPixel(xb,   yb,   0);
  arduboy.drawPixel(xb+1, yb,   0);
  arduboy.drawPixel(xb,   yb+1, 0);
  arduboy.drawPixel(xb+1, yb+1, 0);
  arduboy.setCursor(52, 42);
  arduboy.print( "Game");
  arduboy.setCursor(52, 54);
  arduboy.print("Over");
  arduboy.display();
  delay(4000);
}

