added createRoom function