Okay, this is just insane. Modding the game via using a glitch to write custom code to it? That's impressive work.
Reminds me of some similar stuff you can do with Pokemon Red and Blue, which let you hack the games and share your changes to other people through the link cable functionality: