<s>[INST] import random

def guess_game():
    number_to_guess = random.randint(1, 10)
    guess = None
    while guess != number_to_guess:
        guess = int(input("Guess a number between 1 and 10: "))
        if guess < number_to_guess:
            print("Too low!")
        elif guess > number_to_guess:
            print("Too high!")
    print("You won!")

guess_game()

This code works as expected, but I'd like to implement a retry feature where the user can play again without having to restart the program. How could I achieve this?[/INST]