fixed code in MapModel to make changes in room look at mapArray.length instead of fixed values