Part two of this task is a stable pattern, and so I need to make a general solution to recognize that and compute the answer. https://adventofcode.com/2018/day/12