roomArray population code added