Problem is complete

The test cases travel through all most of the code paths. And the program is working during the game and at the end of the game.