private void render(){
		if(renderMode == RENDER_MODE_GAME && game != null){
			game.paint((Graphics2D)backBufferG);
		}
		if(renderMode == RENDER_MODE_PAUSED_GAME && game != null){
			game.paint((Graphics2D)backBufferG);
			backBufferG.setColor(new Color(1.0f, 1.0f, 1.0f, 0.8f));
			backBufferG.fillRect(0, 0, getWidth(), getHeight());
			 
			resume.paint((Graphics2D) backBufferG);
			highscores.paint((Graphics2D) backBufferG);
			exit.paint((Graphics2D) backBufferG);
			sk.paint((Graphics2D) backBufferG);
			en.paint((Graphics2D) backBufferG);
		}
		if(renderMode == RENDER_MODE_HIGHSCORES){
			highscoresMenu.paint((Graphics2D) backBufferG);
		}
		if(renderMode == RENDER_MODE_HIGHSCORE_ENTER){
			highscoresMenu.paint((Graphics2D) backBufferG);
		}
		if(renderMode == RENDER_MODE_GAME_OVER){
			backBufferG.setColor(Color.white);
			backBufferG.fillRect(0, 0, getWidth(), getHeight());
			backBufferG.setColor(Color.black);
			backBufferG.setFont(new Font("Arial", Font.PLAIN, (int)(Game.PLAYER_HEIGHT*1.5)));
			String str = locale.getWord("gameOver");
			backBufferG.drawString(str, getWidth()/2-backBufferG.getFontMetrics().stringWidth(str)/2, Game.PLATFORM_HEIGHT*3);
			
			playAgain.paint((Graphics2D) backBufferG);
			highscores.paint((Graphics2D) backBufferG);
			exit.paint((Graphics2D) backBufferG);
		}
		
		frontBufferG.drawImage(backBuffer, 0, 0, this);
	}