Client connection during a game

Client can connect dureing a game.
Also corrected a bug in randomisation function