Sorted code. Added constrain to the number of players in the room