Refactoring tournament main into tests.