public void render() {
		BufferStrategy bs = getBufferStrategy();
		if (bs == null) {
			createBufferStrategy(3);
			return;
		}
		
		screen.clear();
		int xScroll = player.x - screen.width / 2;
		int yScroll = player.y - screen.height / 2;
		
		level.render(xScroll, yScroll, screen);
		player.render(screen);

		
		
		for (int i = 0; i < pixels.length; i++) {
			pixels[i] = screen.pixels[i];
			
		}
		
		Graphics g = bs.getDrawGraphics();
		g.fillRect(0, 0, getWidth(), getHeight());		
		g.drawImage(image, 0, 0, getWidth(), getHeight(), null);
		
		g.setColor(Color.white);
		g.setFont(new Font ("verdana", 0, 10));
		g.drawString("x: " + player.x + ", Y: " + player.y, 1, 10);
				
		//g.fillRect(Mouse.getX() - 32, Mouse.getY() - 32, 64, 64);
		
		//Random random2 = new Random();
		
		if (key.taunt){
			
			g.drawString("Where did everyone go?", 550, 210);
		}
		
		
		if (Mouse.getButton() != -1) g.drawString("button: "  + Mouse.getButton(), 80, 80);
		if (Mouse.getButton() == 3) g.drawString("pew pew pew... this is fun", 550, 210);
		g.dispose();
		bs.show();
		
	}