private void drawCardsToCollection(List<Card> cardsToAdd, CardDrawer cardDrawer, 
            int howMany, Container container, Map<Card, Component> drawnCards) {
        for (Card c : cardsToAdd) {
            try {
                JLabel cardLabel = cardDrawer.draw(c, xStart + 30 * howMany, yStart, 0, false);
                cardLabels.add(cardLabel);
            } catch (IOException ex) {
                PicturesNotFoundErrorWindow errorWindow =
                        new PicturesNotFoundErrorWindow(simulationStarter.getDialog(),
                        simulationStarter.getGui());
                errorWindow.create();
            }

            // Removes the card drawn under Available cards.
            container.remove(drawnCards.get(c));
            howMany++;
        }
    }