             }
            });
        }

		function processInput(data) {
			if (data.actionType) {
				// Handle direct action object
				handleAction(data);
			} else if (data.action) {
				handleAction(data.action);
			} else if (data.content && data.content.action) {
				handleAction(data.content.action);
			} else if (data.overlayNinja) {
				handleAction(data.overlayNinja);
			} else if (data.dataReceived && data.dataReceived.overlayNinja) {
				// Handle WebRTC data channel format
			