from typing import Counter


def determineMostCommonPlayer(games):
    """
    takes a list of pgn games as dictionaries and returns the name of the most common player
    """
    allplayers = []
    for g in games:
        allplayers.append(g['white'])
        allplayers.append(g['black'])
    cnt = Counter(allplayers)
    most_common_player = cnt.most_common(1)[0][0]
    return most_common_player