moving Game Center code to model