def add_ss(user, player_id, ss):
    """Add a ss by a player

    Parameters:
        user:  a user dictionary (dict)
        player_id: the player id of the batter (int)
        ss: the number of ss (int)
    Returns:
        user: the update user
    """
    for __ in range(0, ss):
        user['game']['ss'].append(player_id)
    return user