Refactor minimaxtest
Formatting fixes
Final commit