[DEV] Use seperate function to generate rooms