public boolean canDoubleDown(Player player) {
        if (player == null || player.numberOfHands() != 1 || player.getActiveHand().getSize() != 2) {
            return false;
        }

        int value = getHandValue(player.getActiveHand());

        return (value >= NINE && value <= ELEVEN && player.getCash() >= player.getBet());
    }