updated game.cpp