added helper to calculate_total for player and dealer hands