implement global state object, assign balanced teams on connection