made a separate function to generate room's map