refactoring code by adding stats and game modules, testing