refactor GameSvc, add unit tests.