Refactor the balckjack