modified doGameStuff()