@Override
    public void onUpdate(World apples) {
       if (!apples.inBounds(X, Y)||apples.checkCollision(X, Y))
       {
           
           alive = false;
           //apples.explode(X, Y, 32, 8, 16);
       }
       for (Player p:apples.playerList)
       {
           if (maker!=p.ID&&p.checkCollision((int)X, (int)Y))
           {
               alive = false;
           }
       }
       if (life++>50)
       {
           alive = false;
       }
       yspeed+=gravity;
       
       /*if (yspeed<12)
       {
           yspeed++;
       }*/
    }