def max_connected_colors():
    pass


def main():
    # A grid of connected colors: 5 (of 2's).
    grid = [[1, 1, 2, 3],
            [1, 2, 3, 2],
            [3, 2, 2, 2]]


if __init__ == '__main__':
    main()

Add alg_balance_symbols.py