*/
	public void draw(Graphics g){
		if(!animate){
			g.drawImage(img, 0, 0,jPanel);
		}else if(animationCountdown > 0){
			if(animation != null){
				g.drawImage(animation, 0, 0,jPanel);
			}else if(gifAnimation!=null){
				g.drawImage(gifAnimation, 0, 0,jPanel);
			}else{
				
				g.drawImage(img, 0, 0,jPanel);
			}
			animationCountdown--;
			if(animationCountdown<=0){
				animate = false;
			}
		}
	}