Make player serializeable.
Fix on close empty player bug.
Forbid invite players with same gender.