I have this code to make the dealer get extra cards only if dealerScore is less than 16, it compiles but in the actual game it does not work 
public void addDealerCard()
    {
        
        if (this.dealerScore < 16)
        {
        Card dealer = new Card();
        getWorld() .addObject(dealer, x, 100);
        dealer.flipCard();
        
        
        blackjack.setDealer(dealer.tellMeTheValue());
        
        x = x +75;
       
        
        
    }
   
   
             
          
        


