That will make HHH always 6 and TTT always 1
HHH becomes H
Then depending on the next 2 throws
HH -> keep going
HT -> 6
TH -> 5
TT -> 4
For TTT similar with K,1,2,3