Fixed a few infinitely-recursing bugs and added in the ability to check
a board against a rule