public void distributeNumberOfCardsToPlayers(List<Card> deck, HashMap<String, Player> players, int numberOfCardsPerPlayer) {
        if (numberOfCardsPerPlayer <= deck.size() / players.size()) {
           for (int i = 0; i < numberOfCardsPerPlayer; i++) {
               Iterator<Map.Entry<String, Player>> iterator = players.entrySet().iterator();
               while (iterator.hasNext()) {
                   Map.Entry<String, Player> entry = (Map.Entry) iterator.next();
                   entry.getValue().addCardToHand(deck.get(0));
                   deck.remove(0);
               }
           }
        }
    }