public void paint(Graphics g)
	{
		//super.paint(g);
		
		if(bBuffer==null)
		{
			bBuffer=createImage(screenWidth,screenHeight);
			bBg=bBuffer.getGraphics();
		}
		
		bBg.setColor(Color.WHITE);
		bBg.fillRect(0,0,screenWidth,screenHeight);
		
		switch(_state)
		{
			case state_Menu:
			case state_inGame:
				if(moveRight)
					Barr.moveRight();
				else if(moveLeft)
					Barr.moveLeft();
				
				drawBlocks(bBg);
				paintBalls(bBg);
				barr.draw(bBg);
				if(emptyBlocks())
				{
					Level++;
					_state=state_showLevel;
				}
				break;
			case state_showLevel:
				paintLevel(bBg);
		}
		g.drawImage(bBuffer,0,0,null); 
	}