public void render() {
		BufferStrategy bs = getBufferStrategy();
		if (bs == null) {
			try {
				createBufferStrategy(3);
			} catch (IllegalStateException e) {
				System.out.println("Something went wrong here!");
			}
			return;
		}
		screen.fill(0x9a89a8);
		screen.clearLighting(255);

		if (menu != null) {
			menu.render(screen);
		} else {
			level.applyOffset(player.getX() + player.getW() / 2, player.getY() + player.getH() / 2, screen);

			if (screen.lightingEnabled) {
				level.preRender(screen);
			}

			level.renderBackground(screen, (int) player.getX() + player.getW() / 2, (int) player.getY() + player.getH() / 2);
			level.renderSprites(screen);

			renderInterface();
		}
		mouseImage.render(screen);
		pixels = screen.setPixels(pixels);
		Graphics g = bs.getDrawGraphics();
		// int xo = (getWidth() - WIDTH * SCALE) / 2 + 5;
		// int yo = (getHeight() - HEIGHT * SCALE) / 2 + 20;
		int xo = 0;
		int yo = 0;
		g.drawImage(image, xo, yo, getWidth(), getHeight(), null);
		g.dispose();
		bs.show();
	}