public void render(){
		BufferStrategy bs = getBufferStrategy();
		if (bs == null) {
			createBufferStrategy(3);
			return;
		}
		
		screen.clear();
		
	
		stateManage.render(screen);
		for(int  i = 0; i < pixels.length; i++)
		{
			pixels[i]= screen.pixels[i];
		}
		Graphics g = bs.getDrawGraphics();
		g.drawImage(image, 0, 0, getWidth(), getHeight(),null);
		stateManage.render(screen, g);
		
		g.dispose();
		bs.show();
	}