In the event like me where you want it to be easy to swap your stats or the other persons stats from one side to the other, have a swap button. Defenses would be stored in the cookie in the event that they are called upon again from attacker to defender.