private void CheckVoteCount() { // If every logged in non-spectator has voted, auto-flip the cards. if (ActiveRound != null && Clients.Where(cl => ActiveRound.Votes.Where(v => v.ClientID == cl.Info.ID).Any()).Count() == Clients.Where(c => !c.Info.IsSpectator).Count()) { // Tell each client to lock its Undo button. Clients.ForEach(c => c.SendMessage("LockUndo")); // Wait a few moments, then flip the cards. new Thread(() => { Thread.Sleep(1000); ActiveRound.FlipCards(); BroadcastGameState(); }).Start(); } }