rest functions game controller