public void checkCollisions()
 {
     if (BubbleHolder.checkColliding(bubbles[0]))
     {
         bubbles[0].stop();
         BubbleHolder.snapToGrid(bubbles[0]);
         changeBubbles();
         isReady = true;
         if (numberOfShots >= 3)
         {
             BubbleHolder.MoveCeilingDown();
             numberOfShots = 0;
         }
     }
     if (BoardMain.checkWallCollision(bubbles[0]))
     {
         Velocity temp = bubbles[0].getVelocity();
         bubbles[0].setVelocity(new Velocity(-temp.x, temp.y, temp.z));
     }
     if (BoardMain.checkReachedLimit(bubbles[0]))
     {
         bubbles[0].stop();
         BubbleHolder.snapToGrid(bubbles[0]);
         //bubbles[0].popBubble();
         changeBubbles();
     }
 }