fixed the Game function