@Override
	public void update() {
		
		// TODO Auto-generated method stub
		Event ev;
		while(eventExist())
		{
			ev = popEvent();
			if(ev.getName().equals("destroy"))
			{
				if(alive())
				{
					popBonus=(int) (Math.random()*100);
					if(popBonus < 50)
						listElements.addElement(new Bonus(x,y));
					else if(popBonus < 55 && timerBoufTou<=0){
						
						listElements.addElement(new MonsterBouftou(x,y));
						//listElements.addElement(new robot(x,y));
						if(timerDeath==0 && onView()) bouftou.play(3, 2);
					}
				}
				destroy();
			}
		}
	}