public void render() {
		GL11.glPushMatrix();
		
		setRenderLoc(2);
		renderColor(Colors.boxColor);
		if (!(this.open && this.type==0))
		{
			renderSingleModel(this.model);
		}
		
		
		GL11.glPopMatrix();
		GL11.glPushMatrix();
		setRenderLoc(1);	
		
		
		if (this.open && this.type!=0) {
			if (type==-1)
			{
				renderColor(Colors.bombColor);
				GL11.glScalef(.5f, .5f, .5f);
			}
			else
			{
				renderColor(Colors.numberColors[type]);
				GL11.glScalef(2, 2, 2);
			}
			renderModel(this.inside);
		}
		else if (this.open && this.type==0)
		{
			
		}
		else if (this.marked) {
			renderColor(Colors.flagColor);
			renderModel(this.flag);
		}
		else {
			GL11.glScalef(.5f, .5f, .5f);
			renderColor(Colors.innerBoxColor);
			renderModel(this.model);
		}
		GL11.glPopMatrix();

	}