And here is a guy who has figured out a considerably better way to solve #AdventOfCode day 16. Lots of spoilers here: https://www.reddit.com/r/adventofcode/comments/zo21au/comment/j0nz8df/?context=3
It's that comment by zopatista that I'm talking about.