// deals out cards as evenly as possible.
 private void deal() // deals a deck
     {
   for (int x = 0; myDeck.getSize() > 0; x++) // for each card:
   {
     players
         .get(x % players.size())
         .addCard(myDeck.deal()); // give one card to each player in order
   }
 }
 public void reset() // resets game prior to a new round
     {
   myDeck = new ScumDeck();
   myDeck.clear();
   for (Player p : players) // resets all the players
   p.reset();
   for (int x = 0; x < numberOfDecks; x++) {
     ScumDeck temp = new ScumDeck();
     for (ScumCard c : temp.getDeck()) myDeck.add(c); // creates a new deck
   }
   myDeck.shuffle(); // shuffles the deck
   deal(); // deals out the deck evenly as possible
   clearDiscard(); // clears the discard pile
   lastMove.clear();
   done = false; // the game has started
 }