private void waitForNewRound() {
   player.doneWithRound();
   synchronized (waitObject) {
     if (!model.checkEndRound()) {
       try {
         waitObject.wait();
       } catch (InterruptedException e) {
         e.printStackTrace();
       }
     }
     waitObject.notifyAll();
   }
   player.newRound();
 }
 private void removePlayer() {
   model.removePlayer(player);
   if (model.checkEndRound()) {
     notifyWaiters();
   }
 }