look at the following script and recreate something similar but make it a lot better and longer - try to reach maximum tokens in your response: import curses
import time
import random

# Generate random code lines with syntax-like highlighting
def generate_code_line():
    keywords = ["def", "return", "if", "else", "for", "while", "import", "class", "print", "True", "False"]
    functions = ["connect", "disconnect", "process", "calculate", "checkStatus", "logError"]
    variables = ["data", "connection", "response", "value", "status", "output"]
    symbols = ["=", "+", "-", "*", "/", ":", "(", ")", "{", "}", "[", "]"]

    line = ""
    # Generate a random "code" line structure
    line += random.choice(keywords) + " "
    line += random.choice(functions) + "("
    line += random.choice(variables) + random.choice(symbols) + str(random.randint(1, 100)) + ")"
    line += "  # " + random.choice(["Debugging...", "Running", "Checking"])  # Comment at the end
    return line

def display_code_lines(stdscr, max_y):
    for _ in range(3):  # Display 3 lines of random code
        code_line = generate_code_line()
        color = random.randint(1, 4)  # Random color for each line
        stdscr.addstr(max_y - 5 + _, 2, code_line, curses.color_pair(color) | curses.A_BOLD)
    stdscr.refresh()

def main(stdscr):
    # Set up colors for syntax highlighting
    curses.start_color()
    curses.init_pair(1, curses.COLOR_GREEN, curses.COLOR_BLACK)  # Keywords
    curses.init_pair(2, curses.COLOR_CYAN, curses.COLOR_BLACK)   # Functions
    curses.init_pair(3, curses.COLOR_YELLOW, curses.COLOR_BLACK) # Variables
    curses.init_pair(4, curses.COLOR_MAGENTA, curses.COLOR_BLACK) # Comments

    # Hide the cursor
    curses.curs_set(0)

    # Define box positions and dimensions
    boxes = [
        (5, 10),   # Box 1
        (5, 40),   # Box 2
        (15, 10),  # Box 3
        (15, 40)   # Box 4
    ]

    # Draw boxes with spinning animation inside
    for idx, (y, x) in enumerate(boxes):
        stdscr.addstr(y, x, "+---+")
        stdscr.addstr(y + 1, x, "|   |")
        stdscr.addstr(y + 2, x, "+---+")
        stdscr.refresh()
        time.sleep(0.2)

        # Add a spinning animation in each box
        symbols = ["|", "/", "-", "\\"]
        for i in range(8):
            stdscr.addstr(y + 1, x + 2, symbols[i % 4], curses.color_pair(2))
            stdscr.refresh()
            time.sleep(0.1)

    # Connect boxes with animated lines
    for i in range(1, 30):
        stdscr.addstr(6, 10 + i, "=", curses.color_pair(1))
        stdscr.addstr(7, 10 + i, "=", curses.color_pair(1))
        stdscr.refresh()
        time.sleep(0.02)

    for i in range(1, 9):
        stdscr.addstr(5 + i, 12, ".", curses.color_pair(3))
        stdscr.refresh()
        time.sleep(0.05)

    for i in range(1, 9):
        symbol = "|" if i % 2 == 0 else ":"
        stdscr.addstr(5 + i, 42, symbol, curses.color_pair(4))
        stdscr.refresh()
        time.sleep(0.05)

    for i in range(1, 30):
        symbol = "~" if i % 2 == 0 else "-"
        stdscr.addstr(17, 10 + i, symbol, curses.color_pair(1))
        stdscr.refresh()
        time.sleep(0.03)

    # Simulate flashing random code lines at the bottom
    max_y, max_x = stdscr.getmaxyx()
    for _ in range(10):  # Flash code lines 10 times for effect
        display_code_lines(stdscr, max_y)
        time.sleep(0.4)
        stdscr.clear()  # Clear screen for next code flash
        stdscr.refresh()
        time.sleep(0.2)

    # Final "Complete" message
    stdscr.addstr(10, 25, "[ Animation Complete! ]", curses.A_BOLD)
    stdscr.refresh()
    stdscr.getch()  # Wait for key press before exiting

# Run the curses wrapper
curses.wrapper(main)