public void render(){
		BufferStrategy bs = getBufferStrategy();
		if(bs == null){
			createBufferStrategy(3);
			return;
		}
		int xOffset = player.x-screen.width/2;
		int yOffset = player.y-screen.height/2;
		level.renderTiles(screen, xOffset, yOffset);
		
		for(int x=0; x<level.width;x++){
			int color = Colors.get(-1,-1,-1,000);
			if(x%10==0&&x!=0){
				color = Colors.get(-1, -1,-1,500);
			}
			//Font.render(x%10+"", screen, x*8, 0, color);
		}
		
		level.renderEntities(screen);
		
		for(int y=0;y<screen.height;y++){
			for(int x=0; x<screen.width; x++){
				int colorCode = screen.pixels[x+y*screen.width];
				if(colorCode<255) pixels[x+y*WIDTH] = colors[colorCode];
			}
		}
		Graphics g = bs.getDrawGraphics();
		g.drawImage(image,0,0,getWidth(),getHeight(),null);
		g.dispose();
		bs.show();
	}