There should be function to create empty lobbies without any players in the beginning. Currently there needs to be player object passed in createRoom.