@Override
    public void onUpdate(World apples) {
       if (!apples.inBounds(X, Y)||apples.checkCollision(X, Y)||life++>7)
       {
           
           alive = false;
           //apples.explode(X, Y, 32, 8, 16);
       }
       if (next++>2)
       {
            next = 0;
            yspeed+=gravity;
       }
       /*if (yspeed<12)
       {
           yspeed++;
       }*/
    }