TLDR: The program is a really old HyperStack program. It is mostly scripts but uses a native XCMD module in 68k asm to check the win conditions. After reversing that, we figure out it's using a cellular automata to change the tile colors and we always need to touch a red tile. We can simulate the behavior and use a depth first search.
Full writuep: [https://ctf.harrisongreen.me/2020/plaidctf/the_watness_2/](https://ctf.harrisongreen.me/2020/plaidctf/the_watness_2/)