Added onDying()
Some minor modifications to Game.cpp