new controller for game loop