https://geekdad.com/2014/12/geekdad-puzzle-week-solution-four-color-states/
GeekDad Puzzle of the Week Solution – Four Color States