def user_menu(game, user_action):
    """Allows users to view their menu or check current score

    Player data is taken from the game state. Then take the user action
    and goes into the if statement to check the user command, and display
    the information based on different command. If there is a invalid
    comment, then prompt "No menu option found"

    Args:
        game: contains the current game state
        user_action: the user action type in by keyboard

    Returns:
        Ture if successfully executed
    """
    player = game.player
    if 'inventory' in user_action:
        print(player.inventory)
    elif 'score' in user_action:
        print(f"Your current score is: {player.stats['point']}")
    else:
        print("No menu option found")
    return True