This is the classic game of Nim. Two players take turns removing objects from heaps, which are rows in this case. In my version, the player that makes the last move wins. Or to think from a different perspective, the player that cannot make another move loses.

On your turn click on a coin to remove it and all the coins that are bigger than it in the same stack.