public void update(){
		
		if(Keyboard.isKeyDown(Keyboard.KEY_F11)){
			try {
				Display.setVSyncEnabled(!Display.isFullscreen());
				Display.setFullscreen(!Display.isFullscreen());
			} catch (LWJGLException e) {
				e.printStackTrace();
			}
		}

		switch (state) {
		case INTRO:
			Intro.update();
			break;
		case OPTIONS:
			Options.update();
			break;
		case MAINMENU:
			MAINMENU.update();
			break;
		case MENU:
			Menu.update();
			break;
		case GAME:
			
			if(!world.isLoading()){
				Sound.fadeIn(Sound.theme01, 0.0001f, Options.BGVolume, true);
			}
			
			if(!paused){
				world.update();
				PLAYER.update();
			}
			
			UI.update();
			break;
			
		default:
			break;
		}
		
		delta++;
	}