public void inRepaint(){
		if(repaintInProgress){
			return;
		}
		repaintInProgress = true;
		
		BufferStrategy strategy = getBufferStrategy();
		Graphics g = strategy.getDrawGraphics();
		
		game.getPlayer().getCurrentWorld().paint(g, game.getWindowSize(), game.getPlayer().getPosition());
		game.getPlayer().paint(g, new Point(game.getWindowSize().width/2, game.getWindowSize().height/2));
		game.gui.updateInGame(g);
		
		if(g != null){
			g.dispose();
		}
		strategy.show();
		Toolkit.getDefaultToolkit().sync();
		repaintInProgress = false;
	}