def assign_scores(game):
    """Cleanup games without linescores to include team score
    based on team totals."""
    for team in game['team'].values():
        if 'score' not in team and 'totals' in team:
            team['score'] = team['totals']['source__B_R']
    return game