Add cli test for initGame.
Make refactoring.