Odds for rolling dice are:
2 - 1/36
3 - 2/36
4 - 3/36
5 - 4/36
6 - 5/36
7 - 6/36
8 - 5/36
9 - 4/36
10 - 3/36
11 - 2/36
12 - 1/36
If player B rolls a 2, the only way you couldn't win would be if you rolled four 2's in a row. The odds of that are (1/36)^4. So your odds of winning would be 1-(1/36^4). That comes out to .9999994, your odds of losing would be 0. Your odds of tying would then be 1-0-.9999994=.0000006
If player B rolls a 3, the only way you couldn't win would be if you rolled a 2 or a 3 four times in a row. The odds of rolling a 2 or a 3 are (1/36+2/36)=3/36. So your odds of winning would be 1-(3/36^4)=.9999518. The only way you could lose would be if you rolled four 2's in a row. That = .0000006. So the odds of tying would be 1-.9999518-.0000006=.0000476
Using this method for every possible outcome you get (In Win/Loss/Tie form):
Player B rolls a 2: 0.999999404625819 / 0 / 5.95374180765129E-07
3: 0.999951775 / 5.95374180765129E-07 / 0.0000476299344612486
4: 0.999228395 / 0.0000482253086419753 / 0.000723379629629578
5: 0.994046258 / 0.000771604938271605 / 0.00518213686937969
6: 0.969859182 / 0.00595374180765127 / 0.0241870760935833
7: 0.884211034 / 0.0301408179012346 / 0.0856481481481484
8: 0.727928288 / 0.115788966049383 / 0.156282745579942
9: 0.517746914 / 0.272071711629325 / 0.210181374790428
10: 0.293933256 / 0.482253086419753 / 0.223813657407407
11: 0.10656662 / 0.70606674382716 / 0.187366636183509
12: 0 / 0.893433380010669 / 0.106566619989331
We now multiply each answer by how likely the occurrence is. Player B will roll a 2 or a 12 1/36 times, so we multiply the win, tie, and loss percentage in the 2 and 12 row individually by 1/36. 3's and 11's are multiplied by 2/36 and so on. The numbers are:
2: 0.0277777612396061 / 0 / 1.65381716879202E-08
3: 0.0555528763717421 / 3.30763433758405E-08 / 2.64610747006937E-06
4: 0.0832690329218107 / 4.01877572016461E-06 / 0.0000602816358024648
5: 0.110449584243594 / 0.0000857338820301783 / 0.000575792985486632
6: 0.134702664180384 / 0.00082690858439601 / 0.00335931612410879
7: 0.147368505658436 / 0.00502346965020577 / 0.0142746913580247
8: 0.101101151162594 / 0.0160818008401921 / 0.0217059368861031
9: 0.0575274348422497 / 0.0302301901810361 / 0.0233534860878253
10: 0.0244944380144033 / 0.0401877572016461 / 0.0186511381172839
11: 0.00592036777718506 / 0.03922593021262 / 0.0104092575657505
12: 0 / 0.0248175938891852 / 0.00296018388859253
Add all the wins together, all the losses together, and all the ties together and you get:
Win - 0.748163816412005
Loss - 0.156483436293375
Tie - 0.0953527472946197
Multiply 0.748163816412005 by $5 = 3.74081908206003
Multiply 0.156483436293375 by -$20 = -3.1296687258675
3.74081908206003 + -3.1296687258675 = 0.61115035619253
So Player A will expect to win $0.61115035619253 or $0.61/go or $61.12/100 gos or however you want to look at it.
Player A is going to win every time he rolls a 12 unless Player B also rolls a 12. So the auto-win when player A rolls a 12 only changes the results when Player B rolls a 12. This happens so infrequently that Player A's win rate will only increase by about $0.01/go.