Added createRoomMatrix function