public Exit getExit(Room r, String d){
		int[] offset = {0,0};
		
		if(d.equalsIgnoreCase("n"))
			offset[1] = 1;
		else if(d.equalsIgnoreCase("e"))
			offset[0] = 1;
		else if(d.equalsIgnoreCase("s"))
			offset[1] = -1;
		else if(d.equalsIgnoreCase("w"))
			offset[0] = -1;
		else 
			return null;

		Room newRoom = this.roomAtOffset(r, offset[0], offset[1]);
		
		for(int i = 0; i < exits.size(); i++){
			Room[] exitRooms = exits.get(i).getRooms();
			if((exitRooms[0] == r && exitRooms[1] == newRoom) || (exitRooms[1] == r && exitRooms[0] == newRoom))
				return exits.get(i);
		}
		
		return null;
	}