Library to manage distributed state for games