1:Roll xd6 vs xd6.
2: The first pool is a regular pool, the second pool rerolls 1s(even on rerolls) and explodes on 6s(The exploding die does not reroll on a 1, but it can explode again).
4: Continue until there are no dice in the one of the pools, or every dice in the first pool is larger than the dice remaining in the second pool.
I am not really a coder, so I would appreciate some more experienced eyes taking a look at this function to see if my logic is correct. I don't want to keep waiting for my output and redoing my spreadsheets if I screwed something up.