changed Game.cpp to implement the State class