Factored out the Game. No functional changes.