public void paint(Graphics g){
		
		super.paint(g);
		Graphics2D g2d = (Graphics2D)g;
		g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
		if(game.getScreenFactory().getCurrentScreen()!=null)
			game.getScreenFactory().getCurrentScreen().onDraw(g2d);
		repaint();
	}