Anyways the above was so darned close to working for
rectangular boards that I just had to extend it to cover
that. It defaults to 5x5. If you pass one argument it
does nxn. 2 and it does nxm. Still just brute force.