def is_mode_correct(mode_no):
    """The function checks the correctness of the game mode (number range from 1 to 3)."""
    try:
        num = int(mode_no)
        if num < 1 or num > 3:
            return False
    except ValueError:
        return False
    return True