private void render(Graphics g) {
		g.clearRect(0, 0, getWidth(), getHeight());
		if (g instanceof Graphics2D) {
			Graphics2D g2d = (Graphics2D) g;
			try {
				g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
						RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
			} catch (Exception e) {
				System.err.println("Antialias failed for displaying the Font");
			}
		}
		game.render(g);

		g.dispose();
		Toolkit.getDefaultToolkit().sync();
	}