merge 2
Invite code generation
changes to tournament -> create, base and reg