Additional logic and bug fixes.

Game appears to function as intended now.  Next
steps are to decouple the i/o.