Minor input sanitization
Fixed walk regression
The beginnings of a more elegant rules machine. I'd like to wrap them in decorators eventually
Added docstrings
Minor edits
More liberal interface
Rules machine function/moves list. Right now it has to be a global because scoping in decorators.