put functions of game in scope of controller