game startup refactoring