created roomFactory, moved room controller api calls to four methods in roomFactory
resolves merge conflict