Moved rules to global var as well. Made options screen actually save options.