public void loadTiles(String directory, String[] tileList)throws IOException{
		for(int i = 0; i <= tileList.length-1; i++){
			FileReader fr = new FileReader(directory+tileList[i]);
			BufferedReader br = new BufferedReader(fr);
			
			int tileID = Integer.parseInt(br.readLine()); //this is the ID used in the loadMapParts to create the mapPart
			int floorImageID = Integer.parseInt(br.readLine());
			Image tempFloor;
			if(floorImageID != 0){
				tempFloor = Game.loadedResources.tileImages[floorImageID];
			}else{
				tempFloor = null;
			}
			int collisionImageID = Integer.parseInt(br.readLine());
			Image tempCollision;
			if(floorImageID != 0){
				tempCollision = Game.loadedResources.tileImages[collisionImageID];
			}else{
				tempCollision = null;
			}
			int overImageID = Integer.parseInt(br.readLine());
			Image tempOver;
			if(floorImageID != 0){
				tempOver = Game.loadedResources.tileImages[overImageID];
			}else{
				tempOver = null;
			}
			int numHasColl = Integer.parseInt(br.readLine());
			boolean hasCollision;
			if(numHasColl == 1){
				hasCollision = true;
			}else{
				hasCollision = false;
			}
			int numHasBuColl = Integer.parseInt(br.readLine());
			boolean hasBuCollision;
			if(numHasBuColl == 1){
				hasBuCollision = true;
			}else{
				hasBuCollision = false;
			}
			br.close();
			allTiles.set(tileID, new Tile(tileID,tempFloor,tempCollision,tempOver, hasCollision, hasBuCollision));
		}
		allTiles.set(0, null);
	}