 }
 void setup() {
   arduboy.begin();
+  arduboy.setFrameRate(30);
   for(int i=-8; i<28; i=i+2) {
     arduboy.clear();
     arduboy.drawSlowXYBitmap(46,i, arduino, 32,8,1);

  arduboy.drawCircle(ballX, ballY, ballRadius, WHITE);  // Draw outline
  arduboy.drawLine(ballX, ballY, ballX-(ballRadius+1), ballY - ballFlapper, WHITE);  // Draw wing
  arduboy.drawPixel(ballX-(ballRadius+1), ballY - ballFlapper + 1, WHITE);  // Dot the wing
  arduboy.drawPixel(ballX+1, ballY-2, WHITE);  // Eye	
}
void drawPipes() {
  for (int x = 0; x < pipeArraySize; x++){

  int AyA = ballY - (ballRadius-1);  // of the hitbox will go outside of floaty's
  int AyB = ballY + (ballRadius-1);  // drawing
  int BxA, BxB, ByA, ByB;
  
  // check top cylinder
  BxA = pipes[0][x];
  BxB = pipes[0][x] + pipeWidth;
  ByA = 0;
  ByB = pipes[1][x];
  if (AxA < BxB && AxB > BxA && AyA < ByB && AyB > ByA) { return true; } // Collided with top pipe
  
  // check top cap
  BxA = pipes[0][x] - pipeCapWidth;
  BxB = BxA + pipeWidth + (pipeCapWidth*2);
  ByA = pipes[1][x] - pipeCapHeight;
  if (AxA < BxB && AxB > BxA && AyA < ByB && AyB > ByA) { return true; } // Collided with top cap
  
  // check bottom cyllinder
  BxA = pipes[0][x];
  BxB = pipes[0][x] + pipeWidth;
  ByA = pipes[1][x] + pipeGapHeight;
  ByB = HEIGHT-1;
  if (AxA < BxB && AxB > BxA && AyA < ByB && AyB > ByA) { return true; } // Collided with bottom pipe
  
  // check bottom cap
  BxA = pipes[0][x] - pipeCapWidth;
  BxB = BxA + pipeWidth + (pipeCapWidth*2);
