updated Game function