def check_game_state(current_word: str, hangman_state: int) -> bool:
    """Check if there are any _ left in the word or if hangman_state >= 9.

    Args:
        current_word (str): The current state of the word that the user sees.
        hangman_state (int): The state of the hangman.

    Returns:
        bool: True if the game may continue, False if the game is over.
    """
    if hangman_state >= 9:
        return False
    for i in current_word:
        if i == '_':
            return True
    return False