I'm not understanding how the game decides whether you won or lost when attacking a player base. In cases where you destroy everything it's simple enough, you win. But I've noticed battles where the timer runs out on me and I haven't destroyed everything, but the game tells me I'm victorious. Other times I destroyed all defense guns and most everything when the timer runs out, and the game tells me I've been defeated. And I've seen the same stuff when watching replays of player attacks on my base. What's the criteria for win vs. lose?