           try {
                    const result = simulateCursedExecution(code);
                    displayOutput(result);
                } catch (error) {
                    displayError(error.message);
                } finally {
                    loading.style.display = 'none';
                    isRunning = false;
                }
            }, 500 + Math.random() * 1000); // Simulate processing time
        }

        function simulateCursedExecution(code) {
            // Simple CURSED code 