fixed the bug with rooms indexes not being correct when adding more rooms