I added a game loop to the manager class