public void render(){
		GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
		switch (state) {
		case INTRO:
			Intro.render();
			break;
		case OPTIONS:
			 Options.render();
			break;
		case MAINMENU:
			MAINMENU.render();
			break;
		case MENU:
			Menu.render();
			break;
		case GAME:
			if(world.isLoading()){
				GL11.glDisable(GL11.GL_TEXTURE_2D);
				GL11.glColor3f(0, 0, 0);
				GL11.glBegin(GL11.GL_QUADS);
				GL11.glVertex2i(0, 0);
				GL11.glVertex2i(SCREEN_WIDTH, 0);
				GL11.glVertex2i(SCREEN_WIDTH, SCREEN_HEIGHT);
				GL11.glVertex2i(0, SCREEN_HEIGHT);
				GL11.glEnd();
				GL11.glEnable(GL11.GL_TEXTURE_2D);
				
				String msg = "L O A D I N G . . .";
				Font.render(msg, SCREEN_WIDTH/2-msg.length()*16/2, SCREEN_HEIGHT/2,2);
			}else{
			
			if(!UI.isRenderingMap()){
				world.render(World.backgroundTiles);
//				world.renderBackground();
				world.renderEffects();
				PLAYER.render();
				world.renderEntities();
				world.renderObjects();
				UI.render();
			}else{
				Map.render(world);
			}
			
			}
			break;
		default:
			break;
		}
		Display.update();
	}