Yep, it can be done. I was missing one of the game mechanics.
This was genuinely fun. Thanks for submitting it!