Added class for server game loop