public int roomChooser(){
		list.clear();
		for(int i=0; i<map.size(); i++){
			int[] tmp = new int[6];
			tmp = getValue(i);
			if ((tmp[0]==1)&&(tmp[1]==1)){
				list.add(i);
			}
		}
		int l = list.size();
		int m = (int)(Math.random()*l);
		return list.get(m);
	}