Refactoring game and generator.