private void render() {
		BufferStrategy bs = getBufferStrategy();
		if (bs == null) {
			createBufferStrategy(3);
			return;
		}

		currentScreen.clear();
		currentScreen.render();

		for (int i = 0; i < currentScreen.pixels.length; i++) {
			pixels[i] = currentScreen.pixels[i];
		}

		Graphics g = bs.getDrawGraphics();
		g.drawImage(image, 0, 0, getWidth(), getHeight(), null);
		g.dispose();
		bs.show();
	}