Added a test around the new min functionality.
Refactoring game to decrease cyclomatic-complexity.