def get_games(event_sets: list) -> list:
    """
    gets games from a list of sets
    """
    games = []
    for event_set in event_sets:
        set_id = event_set['id']
        for game_number, game in enumerate(event_set['games']):
            if game['selections'] is not None:
                game['setId'] = set_id
                game['gameNumber'] = game_number
                games.append(game)
    return games