def get_player_stack(game_state, uuid):
    """
    Given a Poker game state and a player's uuid, return the value of their stack
    (how many chips they have).
    """
    if 'table' in list(game_state.keys()):
        return [player for player in game_state['table'].seats.players if player.uuid == uuid][0].stack
    else:
        return [player for player in game_state['seats'] if player['uuid'] == uuid][0]['stack']