       if (index < 2)
       {
         index++;
-        tone(A2, 1046, 250);
+        arduboy.audio.tone(1, 1046, 250);
       } else {
-        tone(A2, 1046, 250);
+        arduboy.audio.tone(1, 1046, 250);
         return;
       }
     }

                dx =- dx;
                xb += dx;
                bounced = true;
                tone(A2, 261, 250);
              }
            }
          }

    arduboy.display();
  }

  arduboy.audio.tone(1, 987, 160);
  delay(160);
  arduboy.audio.tone(1, 1318, 400);
  delay(2000);
}

