Adding some testing, implemented game rules.

(The above testing refers to test.rs, which right now tests passing a
mutable reference to a fn that expects an immutable reference. This seems
to work (similar to const keyword in C/XX).