gameMaster implemented using mutexes. Needs testing