Refactors GameFactory in tests