Write a JSON saves for this service. All blocks should be able to be saved in JSON and restored from JSON:
```
<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BC961 Zero-Code Engine</title>
    <style>
        body {
            font-family: monospace;
            background-color: #f0f0f0;
            text-align: center;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            height: 100vh;
        }
        
        h1 {
            margin-bottom: 20px;
        }
        
        #container {
            display: flex;
            width: 100%;
            border: 2px solid black;
        }
        
        #blocks {
            overflow-y: auto;
            padding: 10px;
            flex-grow: 1;
            background-color: #fff;
            border-right: 2px solid black;
        }
        
        #buttons {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            padding: 10px;
            background-color: #fff;
            width: 200px;
        }
        
        button {
            margin-bottom: 10px;
            padding: 10px 20px;
            font-size: 16px;
        }
        
        .block {
            margin: 10px 0;
            padding: 10px;
            border: 1px solid #ccc;
            background-color: #fafafa;
        }
        
        textarea {
            width: calc(100% - 20px);
            max-width: 100%;
            resize: none;
        }
        
        hr {
            margin: 20px 0;
            padding: 0;
            height: 0;
            border: none;
            color: black;
            width: 100%;
            border-top: 1px solid #333;
        }
    </style>
</head>

<body>
    <h1>BC961 Zero-Code Engine</h1>
    <div id="container">
        <div id="blocks"></div>

        <div id="buttons">
            <button id="addImageBlock">Add Image</button>
            <button id="addTextBlock">Add Text</button>
            <hr>

            <button id="addIntervalBlock">Add Interval</button>
            <hr>

            <button id="addInputBlock">Add Input</button>
            <button id="addIfStartBlock">Add IfStart</button>
            <button id="addIfEndBlock">Add IfEnd</button>
            <hr>

            <button id="addProgramStopBlock">Add Program Stop</button>
            <button id="addBreakBlock">Add Break</button>
            <hr>

            <button id="writeInCookieBlock">Write In Cookie</button>
            <button id="clearCookieBlock">Clear Cookie</button>
            <button id="addToCookieBlock">Add to Cookie</button>
			<button id="moveToCookieBlock">Move to Cookie</button>
			<button id="substractFromCookieBlock">Substract From Cookie</button>
			<button id="outputCharFromCookie">Output Char From Cookie</button>
			<button id="debugOutputFromCookie">Debug Output From Cookie</button>
			<button id="startCycle">Start Cycle</button>
			<button id="endCycle">End Cycle</button>
			<button id="returnToInitCookie">Return to Init Cookie</button>
			<button id="printCookieValue">Print Cookie Value</button>
			<button id="randomValue">Random Value</button>
			<button id="arythmeticExpression">Arythmetic Expression</button>
			<button id="moveValueToAnotherCookie">Move Value To Other Cookie</button>
			<button id="inWhichCookieAreWe">In Which Cookie Are We</button>
			<button id="copyValueToAnotherCookie">Copy Value To Other Cookie</button>
			<button id="moveToTheCookieAddressFromCurrentCookieAndTransferTheNumberOfTheCurrentCookie">Move To Cookie Address From Current Cookie</button>
			<button id="moveToTheCookieAddressFromCurrentCookie">Move To The Cookie Address From Current Cookie</button>
			<button id="writeAddressInCookie">Write Address In Cookie</button>
			<button id="addX">Add X[+/-0/1]</button>
			<button id="addM">Add M[+/-0/1]</button>
            <hr>

            <button id="finishBtn">Finish</button>
            <hr>
            
            <!-- Credits -->
            <p>BC961 Zero-Code Engine v1.1<br>Made by GDCocos @2024</p>

            <button id="downloadBtn" style="display: none;">Download Result</button>
            <button id="copyBtn" style="display: none;">Copy Result</button>
        </div>
    </div>

    <script>
        let result = `/* Made With BC961 Zero-Code Engine by GDCocos! */\n`;

        function convert(str) {
            let res = "";
            for (let i = 0; i < str.length; i++) {
                if (str[i] === "\n") {
                    res += ">";
                } else {
                    let tmp2 = str.charCodeAt(i);
                    while (tmp2 !== 0) {
                        if (tmp2 >= 10) {
                            res += "C";
                            tmp2 -= 10;
                        } else {
                            res += "c";
                            tmp2 -= 1;
                        }
                    }
                    res += "9L";
                }
            }
            return res;
        }

        function addImageBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
                <input type="file" accept="image/*">
                <button class="addBtn">Add Image</button>
                <hr>
            `;

            const fileInput = block.querySelector('input[type="file"]');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const file = fileInput.files[0];
                if (!file) return;

                const reader = new FileReader();
                reader.onload = (e) => {
                    const img = new Image();
                    img.onload = () => {
                        const canvas = document.createElement('canvas');
                        canvas.width = img.width;
                        canvas.height = img.height;
                        const ctx = canvas.getContext('2d');
                        ctx.drawImage(img, 0, 0);
                        const imageData = ctx.getImageData(0, 0, img.width, img.height).data;
                        const asciiImage = generateASCII(imageData, img.width, img.height);
                        result += "\n\n" + convert(asciiImage);
                        addButton.style.display = 'none';
                    };
                    img.src = e.target.result;
                };
                reader.readAsDataURL(file);
            });

            document.getElementById('blocks').appendChild(block);
        }

        function addTextBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
                <textarea rows="4"></textarea>
                <button class="addBtn">Add Text</button>
                <hr>
            `;

            const textArea = block.querySelector('textarea');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const textValue = textArea.value.trim();
                if (textValue) {
                    result += "\n\n" + convert(textValue);
                }

                addButton.style.display = 'none';
            });

            document.getElementById('blocks').appendChild(block);
        }

        function addIntervalBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
                <input type="number" placeholder="Enter interval in ms">
                <button class="addBtn">Add Interval</button>
                <hr>
            `;

            const intervalInput = block.querySelector('input[type="number"]');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const intervalValue = intervalInput.value.trim();
                if (intervalValue) {
                    result += `\n\nS[${intervalValue}]`;
                }

                addButton.style.display = 'none';
            });

            document.getElementById('blocks').appendChild(block);
        }

        function addIfStartBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
				<h2>Operation:</h2>
				<label><input type="radio" name="operation" value="Sum"> ></label><br>
				<label><input type="radio" name="operation" value="Difference"> <</label><br>
				<label><input type="radio" name="operation" value="Multiply"> =</label><br>
				<label><input type="radio" name="operation" value="Division"> ~</label><br>

				<h2>Values</h2>
				<label><input type="radio" name="pair" value="current_next"> Current and Next</label><br>
				<label><input type="radio" name="pair" value="current_previous"> Current and Previous</label><br>
				<label><input type="radio" name="pair" value="previous_next"> Previous and Next</label><br>

                <button class="addBtn">Add IfStart</button>
                <hr>
            `;

            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
				const selectedOperation = block.querySelector('input[name="operation"]:checked');
				const selectedPair = block.querySelector('input[name="pair"]:checked');
				if (!selectedPair || !selectedOperation) {
					alert('Please, choose.');
					return;
				}

				switch (selectedPair.value) {
					case 'current_next':
						if (selectedOperation.value === 'Sum') result += `\n\n(t > k ! `;
						else if (selectedOperation.value === 'Difference') `\n\n(t < k ! `;
						else if (selectedOperation.value === 'Multiply') result += `\n\n(t = k ! `;
						else if (selectedOperation.value === 'Division') `\n\n(t ~ k ! `;
						break;

					case 'current_previous':
						if (selectedOperation.value === 'Sum') result += `\n\n(t > i ! `;
						else if (selectedOperation.value === 'Difference') `\n\n(t < i ! `;
						else if (selectedOperation.value === 'Multiply') result += `\n\n(t = i ! `;
						else if (selectedOperation.value === 'Division') `\n\n(t ~ i ! `;
						break;

					case 'previous_next':
						if (selectedOperation.value === 'Sum') result += `\n\n(i > k ! `;
						else if (selectedOperation.value === 'Difference') `\n\n(i < k ! `;
						else if (selectedOperation.value === 'Multiply') result += `\n\n(i = k ! `;
						else if (selectedOperation.value === 'Division') `\n\n(i ~ k ! `;
						break;
				}
				
				addButton.style.display = 'none';
            });

            document.getElementById('blocks').appendChild(block);
        }

        function addIfEndBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>If Line Ended.</strong><hr>`;

            result += `\n)`;

            document.getElementById('blocks').appendChild(block);
        }

        function addInputBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Action Input</strong><hr>`;

            result += `\n\ne`;

            document.getElementById('blocks').appendChild(block);
        }

        function addProgramStopBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Stop Point</strong><hr>`;

            result += `-`;

            document.getElementById('blocks').appendChild(block);
        }

        function writeInCookieBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
            <input type="number" placeholder="Cookie Number">
            <input type="number" placeholder="Value">
            <button class="addBtn">Write In Cookie</button>
            <hr>
        `;

            const cookieNumberInput = block.querySelector('input[type="number"]:nth-child(1)');
            const valueInput = block.querySelector('input[type="number"]:nth-child(2)');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const cookieNumber = cookieNumberInput.value.trim();
                const value = valueInput.value.trim();
                if (cookieNumber && value) {
                    result += `\n\n${"k".repeat(Number(cookieNumber))}L${"c".repeat(Number(value))}N`;
                    cookieNumberInput.value = '';
                    valueInput.value = '';
                    addButton.style.display = 'none';
                }
            });

            document.getElementById('blocks').appendChild(block);
        }

        function clearCookieBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
            <input type="number" placeholder="Cookie Number">
            <button class="addBtn">Clear Cookie</button>
            <hr>
        `;

            const cookieNumberInput = block.querySelector('input[type="number"]');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const cookieNumber = cookieNumberInput.value.trim();
                if (cookieNumber) {
                    result += `\n\n${"k".repeat(Number(cookieNumber))}LN`;
                    cookieNumberInput.value = '';
                    addButton.style.display = 'none';
                }
            });

            document.getElementById('blocks').appendChild(block);
        }

        function addToCookieBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
            <input type="number" placeholder="Cookie Number">
            <input type="number" placeholder="Value">
            <button class="addBtn">Add to Cookie</button>
            <hr>
        `;

            const cookieNumberInput = block.querySelector('input[type="number"]:nth-child(1)');
            const valueInput = block.querySelector('input[type="number"]:nth-child(2)');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const cookieNumber = cookieNumberInput.value.trim();
                const value = valueInput.value.trim();
                if (cookieNumber && value) {
                    result += `\n\n${"k".repeat(Number(cookieNumber))}${"c".repeat(Number(value))}N`;
                    cookieNumberInput.value = '';
                    valueInput.value = '';
                    addButton.style.display = 'none';
                }
            });

            document.getElementById('blocks').appendChild(block);
        }
		
		function moveToCookieBlock() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
            <input type="number" placeholder="Cookie Number">
            <button class="addBtn">Move to Cookie</button>
            <hr>
			`;
			
			const cookieNumberInput = block.querySelector('input[type="number"]:nth-child(1)');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const cookieNumber = cookieNumberInput.value.trim();
                if (cookieNumber) {
                    result += `\n\n${"k".repeat(Number(cookieNumber))}`;
                    addButton.style.display = 'none';
                }
            });

            document.getElementById('blocks').appendChild(block);
		}
		
		function SubstractFromCookieBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
            <input type="number" placeholder="Cookie Number">
            <input type="number" placeholder="Value">
            <button class="addBtn">Substract From Cookie</button>
            <hr>
        `;

            const cookieNumberInput = block.querySelector('input[type="number"]:nth-child(1)');
            const valueInput = block.querySelector('input[type="number"]:nth-child(2)');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const cookieNumber = cookieNumberInput.value.trim();
                const value = valueInput.value.trim();
                if (cookieNumber && value) {
                    result += `\n\n${"k".repeat(Number(cookieNumber))}${"o".repeat(Number(value))}N`;
                    addButton.style.display = 'none';
                }
            });

            document.getElementById('blocks').appendChild(block);
        }
		
		function outputCharFromCookie() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
            <input type="number" placeholder="Cookie Number">
            <button class="addBtn">Output Char From Cookie</button>
            <hr>
			`;
			
			const cookieNumberInput = block.querySelector('input[type="number"]:nth-child(1)');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const cookieNumber = cookieNumberInput.value.trim();
                if (cookieNumber) {
                    result += `\n\n9`;
                    addButton.style.display = 'none';
                }
            });

            document.getElementById('blocks').appendChild(block);
		}
		
		function debugOutputFromCookie() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
            <input type="number" placeholder="Cookie Number">
            <button class="addBtn">Debug Output From Cookie</button>
            <hr>
			`;
			
			const cookieNumberInput = block.querySelector('input[type="number"]:nth-child(1)');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const cookieNumber = cookieNumberInput.value.trim();
                if (cookieNumber) {
                    result += `\n\na`;
                    addButton.style.display = 'none';
                }
            });

            document.getElementById('blocks').appendChild(block);
		}
		
		function startCycle() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Cycle Started.</strong><hr>`;

            result += `\n6`;

            document.getElementById('blocks').appendChild(block);
		}
		
		function endCycle() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Cycle Ended.</strong><hr>`;

            result += `\n1`;

            document.getElementById('blocks').appendChild(block);
		}
		
		function returnToInitCookie() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Returned to the Stack Start.</strong><hr>`;

            result += `\nN`;

            document.getElementById('blocks').appendChild(block);
		}
		
		function printCookieValue() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Cookie Value Printed.</strong><hr>`;

            result += `\nn`;

            document.getElementById('blocks').appendChild(block);
		}
		
		function randomValue() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Random Value has been written into cookie.</strong><hr>`;

            result += `\nR`;

            document.getElementById('blocks').appendChild(block);
		}
		
		function arythmeticExpression() {
			const block = document.createElement('div');
			block.className = 'block';
			block.innerHTML = `
				<h2>Operation:</h2>
				<label><input type="radio" name="operation" value="Sum"> Sum</label><br>
				<label><input type="radio" name="operation" value="Difference"> Difference</label><br>
				<label><input type="radio" name="operation" value="Multiply"> Multiply</label><br>
				<label><input type="radio" name="operation" value="Division"> Division</label><br>

				<h2>Values</h2>
				<label><input type="radio" name="pair" value="current_next"> Current and Next</label><br>
				<label><input type="radio" name="pair" value="current_previous"> Current and Previous</label><br>
				<label><input type="radio" name="pair" value="previous_next"> Previous and Next</label><br>

				<button class="calculateBtn">Add Arithmetic Expression</button>
				<div class="result"></div>
			`;

			const calculateButton = block.querySelector('.calculateBtn');
			const resultDiv = block.querySelector('.result');

			calculateButton.addEventListener('click', () => {
				const selectedOperation = block.querySelector('input[name="operation"]:checked');
				const selectedPair = block.querySelector('input[name="pair"]:checked');
				const addButton = block.querySelector('.calculateBtn');

				if (!selectedPair || !selectedOperation) {
					alert('Please, choose.');
					return;
				}

				switch (selectedPair.value) {
					case 'current_next':
						if (selectedOperation.value === 'Sum') result += `\n\n{t + k}`;
						else if (selectedOperation.value === 'Difference') result += `\n\n{t - k}`;
						else if (selectedOperation.value === 'Multiply') result += `\n\n{t * k}`;
						else if (selectedOperation.value === 'Division') result += `\n\n{t / k}`;
						break;

					case 'current_previous':
						if (selectedOperation.value === 'Sum') result += `\n\n{t + i}`;
						else if (selectedOperation.value === 'Difference') result += `\n\n{t - i}`;
						else if (selectedOperation.value === 'Multiply') result += `\n\n{t * i}`;
						else if (selectedOperation.value === 'Division') result += `\n\n{t / i}`;
						break;

					case 'previous_next':
						if (selectedOperation.value === 'Sum') result += `\n\n{i + k}`;
						else if (selectedOperation.value === 'Difference') result += `\n\n{i - k}`;
						else if (selectedOperation.value === 'Multiply') result += `\n\n{i * k}`;
						else if (selectedOperation.value === 'Division') result += `\n\n{i / k}`;
						break;
				}
				
				addButton.style.display = 'none';
			});

			document.getElementById('blocks').appendChild(block);
		}
		
		//NEW CONTENT HERE
		function moveValueToAnotherCookie() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
            <input type="number" placeholder="Offset">
            <button class="addBtn">Move Value To Other Cookie</button>
            <hr>
        `;

            const cookieNumberInput = block.querySelector('input[type="number"]:nth-child(1)');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const cookieNumber = cookieNumberInput.value.trim();
                if (cookieNumber) {
                    result += `\n\nM[${cookieNumber}]`;
                    addButton.style.display = 'none';
                }
            });

            document.getElementById('blocks').appendChild(block);
		}
		
		function inWhichCookieAreWe() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Position output added.</strong><hr>`;

            result += `\ng`;

            document.getElementById('blocks').appendChild(block);
		}
		
		function copyValueToAnotherCookie() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `
            <input type="number" placeholder="Offset">
            <button class="addBtn">Copy Value To Other Cookie</button>
            <hr>
        `;

            const cookieNumberInput = block.querySelector('input[type="number"]:nth-child(1)');
            const addButton = block.querySelector('.addBtn');

            addButton.addEventListener('click', () => {
                const cookieNumber = cookieNumberInput.value.trim();
                if (cookieNumber) {
                    result += `\n\nX[${cookieNumber}]`;
                    addButton.style.display = 'none';
                }
            });

            document.getElementById('blocks').appendChild(block);
		}
		
		//Move to the cookie whose number corresponds to the value of the current cookie and transfer the number of the current cookie to the one to which we move
		//Move to the cookie whose number corresponds to the value of the current cookie.
		
		function moveToTheCookieAddressFromCurrentCookieAndTransferTheNumberOfTheCurrentCookieToTheOneToWhichWeMove() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Cookie Value Transferred.</strong><hr>`;

            result += `\nP`;

            document.getElementById('blocks').appendChild(block);
		}
		
		function moveToTheCookieAddressFromCurrentCookie() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Moved to Cookie from Cookie Value.</strong><hr>`;

            result += `\nJ`;

            document.getElementById('blocks').appendChild(block);
		}
		
		function writeAddressInCookie() {
			const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Cookie Address has been written.</strong><hr>`;

            result += `\nG`;

            document.getElementById('blocks').appendChild(block);
		}
		
		function addX() {
			const block = document.createElement('div');
			block.className = 'block';
			block.innerHTML = `
				<h2>Left Or Right:</h2>
				<label><input type="radio" name="operation" value="Sum"> -</label><br>
				<label><input type="radio" name="operation" value="Difference"> +</label><br>

				<h2>Move Cursor or Not</h2>
				<label><input type="radio" name="pair" value="current_next"> 1</label><br>
				<label><input type="radio" name="pair" value="current_previous"> 0</label><br>

				<button class="calculateBtn">Add x[+/-0/1]</button>
				<div class="result"></div>
			`;

			const calculateButton = block.querySelector('.calculateBtn');
			const resultDiv = block.querySelector('.result');

			calculateButton.addEventListener('click', () => {
				const selectedOperation = block.querySelector('input[name="operation"]:checked');
				const selectedPair = block.querySelector('input[name="pair"]:checked');
				const addButton = block.querySelector('.calculateBtn');

				if (!selectedPair || !selectedOperation) {
					alert('Please, choose.');
					return;
				}

				switch (selectedPair.value) {
					case 'current_next':
						if (selectedOperation.value === 'Sum') result += `\n\nx[-1]`;
						else if (selectedOperation.value === 'Difference') result += `\n\nx[+1]`;
						break;

					case 'current_previous':
						if (selectedOperation.value === 'Sum') result += `\n\nx[-0]`;
						else if (selectedOperation.value === 'Difference') result += `\n\nx[+0]`;
						break;
				}
				
				addButton.style.display = 'none';
			});

			document.getElementById('blocks').appendChild(block);
		}
		
		function addM() {
			const block = document.createElement('div');
			block.className = 'block';
			block.innerHTML = `
				<h2>Left Or Right:</h2>
				<label><input type="radio" name="operation" value="Sum"> -</label><br>
				<label><input type="radio" name="operation" value="Difference"> +</label><br>

				<h2>Move Cursor or Not</h2>
				<label><input type="radio" name="pair" value="current_next"> 1</label><br>
				<label><input type="radio" name="pair" value="current_previous"> 0</label><br>

				<button class="calculateBtn">Add m[+/-0/1]</button>
				<div class="result"></div>
			`;

			const calculateButton = block.querySelector('.calculateBtn');
			const resultDiv = block.querySelector('.result');

			calculateButton.addEventListener('click', () => {
				const selectedOperation = block.querySelector('input[name="operation"]:checked');
				const selectedPair = block.querySelector('input[name="pair"]:checked');
				const addButton = block.querySelector('.calculateBtn');

				if (!selectedPair || !selectedOperation) {
					alert('Please, choose.');
					return;
				}

				switch (selectedPair.value) {
					case 'current_next':
						if (selectedOperation.value === 'Sum') result += `\n\nm[-1]`;
						else if (selectedOperation.value === 'Difference') result += `\n\nm[+1]`;
						break;

					case 'current_previous':
						if (selectedOperation.value === 'Sum') result += `\n\nm[-0]`;
						else if (selectedOperation.value === 'Difference') result += `\n\nm[+0]`;
						break;
				}
				
				addButton.style.display = 'none';
			});

			document.getElementById('blocks').appendChild(block);
		}
		
		//NEW CONTENT ENDED
		
        function addBreakBlock() {
            const block = document.createElement('div');
            block.className = 'block';
            block.innerHTML = `<strong>Break Point</strong><hr>`;

            result += `_`;

            document.getElementById('blocks').appendChild(block);
        }

        function generateASCII(data, width, height) {
            const asciiChars = '@%#*+=-:. ';
            let asciiImage = '';

            for (let y = 0; y < height; y += 20) {
                for (let x = 0; x < width; x += 10) {
                    const index = (y * width + x) * 4;
                    const r = data[index];
                    const g = data[index + 1];
                    const b = data[index + 2];
                    const avg = (r + g + b) / 3;
                    const charIndex = Math.floor((avg / 255) * (asciiChars.length - 1));
                    asciiImage += asciiChars[charIndex];
                }
                asciiImage += '\n';
            }
            return asciiImage;
        }

        document.getElementById('downloadBtn').addEventListener('click', () => {
            const blob = new Blob([result], {
                type: 'text/plain'
            });
            const url = URL.createObjectURL(blob);
            const a = document.createElement('a');
            a.href = url;
            a.download = 'result.bc961';
            document.body.appendChild(a);
            a.click();
            document.body.removeChild(a);
            URL.revokeObjectURL(url);
        });

        document.getElementById('copyBtn').addEventListener('click', () => {
            navigator.clipboard.writeText(result).then(() => {
                alert("Result copied to clipboard!");
            }).catch(err => {
                console.error("Error copying text: ", err);
            });
        });

        document.getElementById('addImageBlock').addEventListener('click', addImageBlock);
        document.getElementById('addTextBlock').addEventListener('click', addTextBlock);
        document.getElementById('addIntervalBlock').addEventListener('click', addIntervalBlock);
        document.getElementById('addIfStartBlock').addEventListener('click', addIfStartBlock);
        document.getElementById('addIfEndBlock').addEventListener('click', addIfEndBlock);
        document.getElementById('addInputBlock').addEventListener('click', addInputBlock);
        document.getElementById('addProgramStopBlock').addEventListener('click', addProgramStopBlock);
        document.getElementById('addBreakBlock').addEventListener('click', addBreakBlock);
        document.getElementById('writeInCookieBlock').addEventListener('click', writeInCookieBlock);
        document.getElementById('clearCookieBlock').addEventListener('click', clearCookieBlock);
        document.getElementById('addToCookieBlock').addEventListener('click', addToCookieBlock);
		document.getElementById('moveToCookieBlock').addEventListener('click', moveToCookieBlock);
		document.getElementById('substractFromCookieBlock').addEventListener('click', SubstractFromCookieBlock);
		document.getElementById('outputCharFromCookie').addEventListener('click', outputCharFromCookie);
		document.getElementById('debugOutputFromCookie').addEventListener('click', debugOutputFromCookie);
		document.getElementById('startCycle').addEventListener('click', startCycle);
		document.getElementById('endCycle').addEventListener('click', endCycle);
		document.getElementById('returnToInitCookie').addEventListener('click', returnToInitCookie);
		document.getElementById('printCookieValue').addEventListener('click', printCookieValue);
		document.getElementById('randomValue').addEventListener('click', randomValue);
		document.getElementById('arythmeticExpression').addEventListener('click', arythmeticExpression);
		document.getElementById('moveValueToAnotherCookie').addEventListener('click', moveValueToAnotherCookie);
		document.getElementById('inWhichCookieAreWe').addEventListener('click', inWhichCookieAreWe);
		document.getElementById('copyValueToAnotherCookie').addEventListener('click', copyValueToAnotherCookie);
		document.getElementById('moveToTheCookieAddressFromCurrentCookieAndTransferTheNumberOfTheCurrentCookie').addEventListener('click', moveToTheCookieAddressFromCurrentCookieAndTransferTheNumberOfTheCurrentCookie);
		document.getElementById('moveToTheCookieAddressFromCurrentCookie').addEventListener('click', moveToTheCookieAddressFromCurrentCookie);
		document.getElementById('writeAddressInCookie').addEventListener('click', writeAddressInCookie);
		document.getElementById('addX').addEventListener('click', addX);
		document.getElementById('addM').addEventListener('click', addM);

        document.getElementById('finishBtn').addEventListener('click', () => {
            document.getElementById('addImageBlock').style.display = 'none';
            document.getElementById('addTextBlock').style.display = 'none';
            document.getElementById('addIntervalBlock').style.display = 'none';
            document.getElementById('addIfStartBlock').style.display = 'none';
            document.getElementById('addIfEndBlock').style.display = 'none';
            document.getElementById('addInputBlock').style.display = 'none';
            document.getElementById('addProgramStopBlock').style.display = 'none';
            document.getElementById('addBreakBlock').style.display = 'none';

            document.getElementById('writeInCookieBlock').style.display = 'none';
            document.getElementById('clearCookieBlock').style.display = 'none';
            document.getElementById('addToCookieBlock').style.display = 'none';
			
			document.getElementById('moveToCookieBlock').style.display = 'none';
			document.getElementById('substractFromCookieBlock').style.display = 'none';
			document.getElementById('outputCharFromCookie').style.display = 'none';
			document.getElementById('debugOutputFromCookie').style.display = 'none';
			document.getElementById('startCycle').style.display = 'none';
			document.getElementById('endCycle').style.display = 'none';
			document.getElementById('returnToInitCookie').style.display = 'none';
			document.getElementById('printCookieValue').style.display = 'none';
			document.getElementById('randomValue').style.display = 'none';
			document.getElementById('arythmeticExpression').style.display = 'none';
			
			document.getElementById('moveValueToAnotherCookie').style.display = 'none';
			document.getElementById('inWhichCookieAreWe').style.display = 'none';
			document.getElementById('copyValueToAnotherCookie').style.display = 'none';
			document.getElementById('moveToTheCookieAddressFromCurrentCookieAndTransferTheNumberOfTheCurrentCookie').style.display = 'none';
			document.getElementById('moveToTheCookieAddressFromCurrentCookie').style.display = 'none';
			document.getElementById('writeAddressInCookie').style.display = 'none';
			document.getElementById('addX').style.display = 'none';
			document.getElementById('addM').style.display = 'none';

            document.getElementById('finishBtn').style.display = 'none';

            const lines = document.querySelectorAll('#buttons hr');
            lines.forEach(line => line.style.display = 'none');

            checkDownloadVisibility();
        });

        function checkDownloadVisibility() {
            document.getElementById('downloadBtn').style.display = result ? 'block' : 'none';
            document.getElementById('copyBtn').style.display = result ? 'block' : 'none';
        }
    </script>

</body>

</html>
```