writing game.cpp methods