Implemented player number selection using dice rolling.

When starting a fresh game (not resuming a paused one), all players choose a random number (in the integer range). They share their roll and sort all numbers to find the player numbers to identify their object.

Also fixed a lot of issues with joining and leaving.