refactoring games package