added logic for waiting for players condition
sender.html = production, chromehellotext.html = debug