On the Subject of gay gay homosexual gay

wait who?

Read the first letters of the initial config. The goal is GGHG.

Use "Edgecase" column if last digit of SN mod 4 = N. N equals to 0 when initial is GHGH, else 1.

Init Edgecase Otherwise
HHGH31244213
GHGH423243
HGGH134143
HHGG132213
HHHH12413243
GGGH3443
GHGG3223
GHHH243243
HGGG13
HGHH14
HHHG12
GGGG3
GGHH4
GHHG2
HGHG1