public void paint(Graphics g)
	{
		if (getWidth() != PongScreen.width || getHeight() != PongScreen.height)
			PongWars.ps.setSize(PongScreen.width * 2 - getWidth(), PongScreen.height * 2 - getHeight());
		if (dbg == null)
		{
			while (dbi == null)
				dbi = createImage(PongScreen.width, PongScreen.height);
			while (dbg == null)
				dbg = dbi.getGraphics();
		}
		draw(dbg);
		paintLaserShot(dbg);
		paintMissile(dbg);
		
		g.drawImage(dbi, 0, 0, this);
		repaint();
	}