Added timed loops for waiting and lobby activities. also filled in some
psuedocode