public void declareWinner() {
        int dealer = Math.max(dealerHand.getAcedValue(), dealerHand.getValue());
        int player = Math.max(playerHand.getValue(), playerHand.getAcedValue());
        int split = 0;
        dealer = dealer > 21 ? 0 : dealer;
        player = player > 21 ? 0 : player;

        if (splitHand != null) {
            split = Math.max(splitHand.getValue(), splitHand.getAcedValue());
            split = split > 21 ? 0 : split;
            declareSplitWinnings(dealer, player, split);
            return;
        }
        if (dealer > player) {
            ui.gameOver("DEALER WINS");
        } else if (dealer == player) {
            ui.gameOver("GAME IS SPLIT");
            payWinnings((playerHand.getBet()));
        } else {
            ui.gameOver("YOU WIN " + (playerHand.getBet() * 2) + "€");
            payWinnings((playerHand.getBet() * 2));
        }
    }