Thank you for the great feedback.
I've added a mechanic to fix games going infinite or being bound to lose. Every 10 seconds both players get dealt a powerful attack card. This prevents the game from going infinite when there are only defense cards.
I've also fixed that bug where the opponent has zero cards and the player doesn't win, thanks for the heads up.