There's nothing wrong with that idea, conceptually. Practically speaking, it's just a bigger pain in the butt than you might think. You've got as many as a couple thousand individual, numbered variables to look for patterns in, controlled by a few 10's of thousands of instructions. It's quite possible to do; it just takes someone with Nintendo/6502 programming experience, an eye for patterns, and a ton of time :-)