public void render(){
		BufferStrategy bs = getBufferStrategy();
		if (bs == null){
			createBufferStrategy(3);
			requestFocus();
			return;
		}
		
		level.renderBackground(xScroll, yScroll, screen);
		
		for(int y = 0; y < screen.h; y++){
			for(int x = 0; x < screen.w; x++){
				pixels[x+(y*WIDTH)] = screen.pixels[x+(y*screen.w)];
			}
		}
		
		Graphics g = bs.getDrawGraphics();
		g.drawImage(image, 0, 0, getWidth(), getHeight(), null);
		g.dispose();
		bs.show();
	}