def get_board_dict(data):
    """Convert the data dictionary into a format that is used by the 
    print_board function.
    """
    board_dict = {}
    for type, tokens in data.items():

        if type == "upper":
            for tok in tokens:
                board_dict[(tok[1], tok[2])] = "({})".format(tok[0].upper())
        elif type == "lower":
            for tok in tokens:
                board_dict[(tok[1], tok[2])] = "({})".format(tok[0])
        else:
            for tok in tokens:
                board_dict[(tok[1], tok[2])] = "(X)"
    return board_dict