PlayGame.cpp solution