private boolean isGameEnded() {
        boolean packEnded = (pack.getCardAmount() == 0);
        if (((first.getAmountOfCards() == 0) && packEnded) || ((second.getAmountOfCards() == 0) && (packEnded))) {
            return true;
        } else {
            return false;
        }

    }