cleaned game.cpp