So I do have a screenshot to share that explains the problem. Basically, I was versing the first gym leader and we had used up all of our cards and berries. Our pokemon were doing 5 damage each turn but not on each other, so we were taking damage and healing that exact damage each turn. We were basically trapped in an endless loop unless I eventually gave up and resigned the match. 