checking if ace exists and if points >21
<p>In my blackjack program i have:</p>

<pre><code>Card c = dealCard(deck); //deals the card
updatePoints(players[i], c); // calls updatePoints below. 
</code></pre>

<p>The updatePoints function looks like this:</p>

<pre><code>public static void updatePoints(Player player,  Card c){

        int point = c.getValue();
        if(player.getPoints() + point &gt;21 &amp;&amp; (player.ace1 == 11 || player.ace2 == 11 || player.ace3 == 11 || player.ace4 == 11)){
            player.points -= 10;
            player.setPoints(point);
            if (player.ace1 == 11){
                player.ace1 = 1;
            }else if(player.ace2 == 11){
                player.ace2 = 1;
            }else if(player.ace3 == 11){
                player.ace3 = 1;
            }else if (player.ace4 == 11){
                player.ace4 = 1;
            }
        }
        if (point == 1){
            //default value for player.ace1 .. player.ace4 is 0


            if(player.ace1 == 0){
                player.ace1 = 11;
                player.setPoints(11);
            }else if (player.ace2 == 0){
                player.ace2 = 11;
                player.setPoints(11);
            }else if (player.ace3 == 0){
                player.ace3 = 11;
                player.setPoints(11);
            }else if(player.ace4 == 0){
                player.ace4 = 11;
                player.setPoints(11);
            }

        }else{
            player.setPoints(point);
        }
        return;
    }
</code></pre>

<p>for some reason when the points go over 21 this doesnt change the ace value and doesnt adjust the ace.
any help will be appreciated. 
Thank you</p>
