minor updates to waiting and mathgame to include logic for detectig the presence or absence of players