Seventh day: several TODOs solved.

+ When responding an invite, a user name can now be chosen
+ Battle loop iteration limiter
+ Matches can be left when in progress
* Main game loop refactored
* Several smaller improvements