import java.util.ArrayList;

public class Seat {
  private Player          player;
  private int             bet;
  private ArrayList<Card> pocket;

	public Seat () {
    player = null;
    bet    = 0;
    pocket = new ArrayList<>();
	}

  public void placeBet () {
    this.bet = this.player.getBet ();
  }

  public int getPocketCount () {
    int total = 0;

    for (Card card : pocket) {
      total += card.getFaceValue();
    }

    return total;
  }

  public void addPlayer (Player player) {
    this.player = player;
  }
  public Player getPlayer () {
    return player;
  }
  public void removePlayer () {
    this.player = null;
  }

  public void setBet (int bet) {
    this.bet = bet;
  }
  public int getBet () {
    return this.bet;
  }

  public ArrayList<Card> getPocket () {
    return pocket;
  }

  public void addCard (Card card) {
    pocket.add (card);
  }
}
@@ -363,70 +363,370 @@
     
-for (Card card : pocket) %7B%0A      total += card.getFaceValue();
+// add all cards except aces%0A    for (Card card : pocket) %7B%0A      if (card.getFace() != %22Ace%22) %7B%0A        total += card.getFaceValue();%0A      %7D%0A    %7D%0A%0A    // add aces%0A    for (Card card : pocket) %7B%0A      if (card.getFace() == %22Ace%22) %7B%0A        if (total + card.getFaceValue() %3E= 21) %7B%0A          total += 1;%0A        %7D else %7B%0A          total += 11;%0A        %7D%0A      %7D
 %0A   

handle aces