public void run()
	{
		while(ballAlive)
		{
			try{Thread.sleep(speed);}catch(Exception e){}
			switch(_state)
			{
			case state_inGame:
				if(!stateAnimated)
				{
					ballIsInBarr();
					if(MetalBreaker.blocks!=null)
						ballIsInBlock();
					move();
				}
				else
					animateBall();
				break;
			case state_Menu:
				x=(Barr.x+(Barr.width/2))-(widthHeight>>1);//Xinicial;
				y=Yinicial;
				break;
			}
		}
	}