Moved game loop to manager