func dealerPlays(d deck.Deck, h *hand.Hand) { for !h.Busted() && h.Value() < 17 { // dealer must hit when <17 c, _ := d.NextCard() h.AddCard(c) } }