public void loadMap(int parts){

		int whichMap;
		String tempLine = "";
		try{
			File newMap = new File("some.txt");
			BufferedWriter bw = new BufferedWriter(new FileWriter(newMap));
			BufferedReader br;
			for(int i = 1; i < parts + 1; i++){
				Random r = new Random();
				whichMap = r.nextInt(PIECES_AMOUNT) + 1;	
				InputStream in = getClass().getResourceAsStream("/Pieces/map" + whichMap + ".txt");
				br = new BufferedReader(new InputStreamReader(in));
				numCols = numCols + Integer.parseInt(br.readLine());
				numRows = Integer.parseInt(br.readLine());
				if(i == parts - 1){
				}
				for(int j = 0; j < numRows; j++){
					tempLine = br.readLine();
					if(i == 1){
						//mapLines[j] = tempLine;
					}else{
						mapLines[j] += tempLine;
					}
				if(i == parts){
					numCols = mapLines[0].length() / 2;
					bw.write(numCols + "\r\n");
					bw.write(numRows + "\r\n");
				bw.write(mapLines[j] + "\r\n");
				}
				//System.out.println(mapLines[j]);
				//writeMap();
				}
			 
				
			}
			bw.close();
			
		}catch(Exception e){
			e.printStackTrace();
		}
	}