) {
                const isAtBottom = (window.innerHeight + window.scrollY) >= document.body.offsetHeight - 50;

                if (is_ai_turn) {
                    ai_done()
                }
                is_ai_turn = false;
                round_id += 1;
                let newDiv = document.createElement("div");
                newDiv.className = "message_container message_user";
                newDiv.innerHTML = '<div class="avatar_container avatar_user"><div class="avatar_icon_user"></div></div>