Tip
You could write simple loop and find best available row of cards and show this after each battle .Iff player get highest damage possible he get coin.