this is the current code of my quiz extraction data, how do I modify to also include the following case:

<script>
  var isComplex = true;
  var answerGiven = false;
  var qId = null;
  var aId = null;
  var aUrl = "\/games\/True Or False";
  var aName = "True Or False";
  var quizId = 83;
  var MWQUIZ = {
    allAnswers: {"857":{"id":857,"quiz_id":83,"image_pair_id":null,"quiz_difficulty_id":4,"delta":7,"question":"Mahatma Gandhi began his nonviolent crusade in South Africa.","response":"Gandhi first used nonviolence against British rule in South Africa and then applied his tactics to India.","diff_name":"Hard","diff_key":"level-3","answers":[{"id":3382,"quiz_question_id":857,"image_pair_id":null,"is_correct":0,"answer":"FALSE","response":""},{"id":3380,"quiz_question_id":857,"image_pair_id":null,"is_correct":1,"answer":"TRUE","response":""}]},"854":{"id":854,"quiz_id":83,"image_pair_id":null,"quiz_difficulty_id":3,"delta":5,"question":"Basketball was first played with peach baskets as hoops.","response":"James Naismith, a P.E. instructor at the YMCA training school in Springfield, Mass., invented the game in 1891 to keep his students fit during winter. He had peach baskets nailed to the lower rail of the gym balcony, which happened to be ten feet off the floor.","diff_name":"Medium","diff_key":"level-2","answers":[{"id":3373,"quiz_question_id":854,"image_pair_id":null,"is_correct":0,"answer":"FALSE","response":""},{"id":3372,"quiz_question_id":854,"image_pair_id":null,"is_correct":1,"answer":"TRUE","response":""}]},"859":{"id":859,"quiz_id":83,"image_pair_id":null,"quiz_difficulty_id":4,"delta":8,"question":"Halle Berry was the first African American woman to win an Academy Award.","response":"Hattie McDaniel, for her role as Mammy in <em>Gone with the Wind<\/em> (1939), won an Oscar for Best Supporting Actress.","diff_name":"Hard","diff_key":"level-3","answers":[{"id":3385,"quiz_question_id":859,"image_pair_id":null,"is_correct":1,"answer":"FALSE","response":""},{"id":3387,"quiz_question_id":859,"image_pair_id":null,"is_correct":0,"answer":"TRUE","response":""}]},"848":{"id":848,"quiz_id":83,"image_pair_id":null,"quiz_difficulty_id":2,"delta":1,"question":"According to Thomas Edison, \"Genius is 1% inspiration and 99% fabrication.\"","response":"The correct quote is, \"Genius is 1% inspiration and 99% perspiration.\"","diff_name":"Easy","diff_key":"level-1","answers":[{"id":3354,"quiz_question_id":848,"image_pair_id":null,"is_correct":1,"answer":"FALSE","response":""},{"id":3356,"quiz_question_id":848,"image_pair_id":null,"is_correct":0,"answer":"TRUE","response":""}]},"861":{"id":861,"quiz_id":83,"image_pair_id":null,"quiz_difficulty_id":5,"delta":9,"question":"\"Magma\" is the scientific name for lava.","response":"Lava is molten rock expelled by a volcano; magma is molten rock contained below the Earth's surface.","diff_name":"Hardest","diff_key":"level-4","answers":[{"id":3391,"quiz_question_id":861,"image_pair_id":null,"is_correct":0,"answer":"TRUE","response":""},{"id":3389,"quiz_question_id":861,"image_pair_id":null,"is_correct":1,"answer":"FALSE","response":""}]},"849":{"id":849,"quiz_id":83,"image_pair_id":null,"quiz_difficulty_id":2,"delta":2,"question":"Tapas are common Scandinavian appetizers.","response":"Tapas are appetizers associated with Spanish cuisine.","diff_name":"Easy","diff_key":"level-1","answers":[{"id":3360,"quiz_question_id":849,"image_pair_id":null,"is_correct":0,"answer":"TRUE","response":""},{"id":3358,"quiz_question_id":849,"image_pair_id":null,"is_correct":1,"answer":"FALSE","response":""}]},"851":{"id":851,"quiz_id":83,"image_pair_id":null,"quiz_difficulty_id":3,"delta":3,"question":"The classic sci-fi novel <em>Fahrenheit 451<\/em> gets its title from the temperature used to burn paper.","response":"\"Fahrenheit 451,\" in Ray Bradbury's famed tale, is the temperature used to burn books banned by the state.","diff_name":"Medium","diff_key":"level-2","answers":[{"id":3363,"quiz_question_id":851,"image_pair_id":null,"is_correct":1,"answer":"TRUE","response":""},{"id":3365,"quiz_question_id":851,"image_pair_id":null,"is_correct":0,"answer":"FALSE","response":""}]},"856":{"id":856,"quiz_id":83,"image_pair_id":null,"quiz_difficulty_id":4,"delta":6,"question":"Skin is the human body's largest organ.","response":"Skin is the largest overall organ of the body; the liver is the largest and heaviest internal organ.","diff_name":"Hard","diff_key":"level-3","answers":[{"id":3378,"quiz_question_id":856,"image_pair_id":null,"is_correct":0,"answer":"FALSE","response":""},{"id":3376,"quiz_question_id":856,"image_pair_id":null,"is_correct":1,"answer":"TRUE","response":""}]},"846":{"id":846,"quiz_id":83,"image_pair_id":null,"quiz_difficulty_id":2,"delta":0,"question":"The \"Strawberry Fields\" memorial, dedicated to musician John Lennon, is in Liverpool.","response":"It's in New York's Central Park, not far from his apartment where he was shot and killed on December 8, 1980.","diff_name":"Easy","diff_key":"level-1","answers":[{"id":3350,"quiz_question_id":846,"image_pair_id":null,"is_correct":1,"answer":"FALSE","response":""},{"id":3351,"quiz_question_id":846,"image_pair_id":null,"is_correct":0,"answer":"TRUE","response":""}]},"853":{"id":853,"quiz_id":83,"image_pair_id":null,"quiz_difficulty_id":3,"delta":4,"question":"Drinking warm milk induces sleep.","response":"Milk contains traces of tryptophan - the amino acid also found in turkey that induces sleep - and this, in combination with the psychological association of warmth with relaxation, can induce sleep.","diff_name":"Medium","diff_key":"level-2","answers":[{"id":3367,"quiz_question_id":853,"image_pair_id":null,"is_correct":1,"answer":"TRUE","response":""},{"id":3369,"quiz_question_id":853,"image_pair_id":null,"is_correct":0,"answer":"FALSE","response":""}]}},
    imageData: [],
    qIds: [857,854,859,848,861,849,851,856,846,853],
    timer_key: "on",
    timer: 15,
    maxScore: 4200  }

  window.newQuizPlayData = {};
  window.newQuizPlayData.isComplex = isComplex;
  window.newQuizPlayData.ag = answerGiven;
  window.newQuizPlayData.qid = qId;
  window.newQuizPlayData.aid = aId;
  window.newQuizPlayData.slug = aUrl;
  window.newQuizPlayData.name = aName;
  window.newQuizPlayData.quizId = quizId;
  window.newQuizPlayData.quizData = MWQUIZ;
</script>

import re
import json
import tkinter as tk
from tkinter import scrolledtext, messagebox, filedialog

def extract_mwquiz_from_html(html_content):
    """
    Extracts quiz questions and answers from the provided HTML content.

    Args:
        html_content (str): The HTML content as a string.

    Returns:
        list of tuples: Each tuple contains (question, correct_answer, correct_option).
    """
    # Find the MWQUIZ variable
    mwquiz_match = re.search(r'var\s+MWQUIZ\s*=\s*(\{.*?\});', html_content, re.DOTALL)
    if not mwquiz_match:
        return None

    mwquiz_str = mwquiz_match.group(1)

    # Extract the allAnswers object
    all_answers_match = re.search(r'allAnswers\s*:\s*(\{.*?\}),\s*imageData\s*:', mwquiz_str, re.DOTALL)
    if not all_answers_match:
        return None

    all_answers_str = all_answers_match.group(1)

    # Replace single quotes with double quotes for JSON parsing
    all_answers_str = all_answers_str.replace("'", '"')

    try:
        all_answers = json.loads(all_answers_str)
    except json.JSONDecodeError:
        return None

    # Extract qIds
    qIds_match = re.search(r'qIds\s*:\s*\[(.*?)\]', mwquiz_str)
    if not qIds_match:
        return None

    qIds_str = qIds_match.group(1)
    # Handle possible spaces and ensure only numbers are extracted
    qIds = [int(id.strip()) for id in qIds_str.split(',') if id.strip().isdigit()]

    # Extract questions and answers
    questions_and_answers = []
    for qId in qIds:
        question_data = all_answers.get(str(qId))
        if question_data:
            question_text = question_data.get('question', 'No question text')
            answers = question_data.get('answers', [])
            # Initialize variables
            correct_answer = 'No correct answer found'
            correct_option = 'N/A'
            # Iterate through answers to find the correct one
            for index, answer in enumerate(answers):
                if answer.get('is_correct') == 1:
                    correct_answer = answer.get('answer', 'No answer text')
                    correct_option = chr(65 + index)  # 65 is ASCII for 'A'
                    break
            questions_and_answers.append((question_text, correct_answer, correct_option))

    return questions_and_answers

def process_html():
    """
    Processes the HTML input and displays the extracted quiz data.
    """
    html_content = input_text.get("1.0", tk.END)
    if not html_content.strip():
        messagebox.showwarning("Input Required", "Please enter or paste the HTML code.")
        return

    try:
        qa_pairs = extract_mwquiz_from_html(html_content)
        if qa_pairs:
            output_text.config(state=tk.NORMAL)
            output_text.delete("1.0", tk.END)
            for i, (question, answer, option) in enumerate(qa_pairs, 1):
                output_text.insert(tk.END, f"{i}. {question} - {answer} ({option})\n")
            # List of correct options
            correct_options = [option for _, _, option in qa_pairs]
            output_text.insert(tk.END, f"\nCorrect options: {', '.join(correct_options)}")
            output_text.config(state=tk.DISABLED)
        else:
            messagebox.showerror("Extraction Failed", "Failed to extract quiz data from the HTML content.")
    except Exception as e:
        messagebox.showerror("Error", f"An error occurred: {str(e)}")

def load_html_file():
    """
    Opens a file dialog to select an HTML file and loads its content into the input text area.
    """
    file_path = filedialog.askopenfilename(
        title="Select HTML File",
        filetypes=[("HTML Files", "*.html;*.htm"), ("All Files", "*.*")]
    )
    if file_path:
        try:
            with open(file_path, 'r', encoding='utf-8') as file:
                content = file.read()
            input_text.delete("1.0", tk.END)
            input_text.insert(tk.END, content)
        except Exception as e:
            messagebox.showerror("File Error", f"Failed to read the file:\n{str(e)}")

def save_output():
    """
    Opens a file dialog to save the output text to a file.
    """
    file_path = filedialog.asksaveasfilename(
        title="Save Output",
        defaultextension=".txt",
        filetypes=[("Text Files", "*.txt"), ("All Files", "*.*")]
    )
    if file_path:
        try:
            with open(file_path, 'w', encoding='utf-8') as file:
                content = output_text.get("1.0", tk.END)
                file.write(content)
            messagebox.showinfo("Save Successful", f"Output saved to {file_path}")
        except Exception as e:
            messagebox.showerror("Save Error", f"Failed to save the file:\n{str(e)}")

# Initialize the main window
root = tk.Tk()
root.title("MWQuiz Extractor")
root.geometry("800x600")
root.resizable(False, False)

# Define the input frame
input_frame = tk.Frame(root)
input_frame.pack(pady=10, padx=10, fill=tk.BOTH, expand=True)

input_label = tk.Label(input_frame, text="Enter HTML Code:")
input_label.pack(anchor='w')

# Add a scrollbar to the input text area
# Removed redundant scrollbar code since scrolledtext already includes scrollbar
input_text = scrolledtext.ScrolledText(input_frame, wrap=tk.WORD, width=95, height=15)
input_text.pack(fill=tk.BOTH, expand=True)
input_text.config(font=("Consolas", 10))

# Define the buttons frame
buttons_frame = tk.Frame(root)
buttons_frame.pack(pady=5)

load_button = tk.Button(buttons_frame, text="Load HTML File", command=load_html_file, width=15)
load_button.grid(row=0, column=0, padx=5)

process_button = tk.Button(buttons_frame, text="Process HTML", command=process_html, width=15)
process_button.grid(row=0, column=1, padx=5)

save_button = tk.Button(buttons_frame, text="Save Output", command=save_output, width=15)
save_button.grid(row=0, column=2, padx=5)

# Define the output frame
output_frame = tk.Frame(root)
output_frame.pack(pady=10, padx=10, fill=tk.BOTH, expand=True)

output_label = tk.Label(output_frame, text="Output:")
output_label.pack(anchor='w')

# Add a scrollbar to the output text area
# Removed redundant scrollbar code since scrolledtext already includes scrollbar
output_text = scrolledtext.ScrolledText(output_frame, wrap=tk.WORD, width=95, height=15, state=tk.DISABLED)
output_text.pack(fill=tk.BOTH, expand=True)
output_text.config(font=("Consolas", 10))

# Start the main event loop
root.mainloop()