public static void newMap() {
		Writer writer = null;

		try {
		    writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(MazeMaker.mapName), "utf-8"));
		    for(int y = 0; y < MazeMaker.gridSize; y++) {
				for(int x = 0; x < MazeMaker.gridSize; x++) {
					if(MazeMaker.border == true && (y == 0 || y == MazeMaker.gridSize-1 || x == 0 || x == MazeMaker.gridSize-1)) {
						writer.write("w");
					} else {
						writer.write("g");
					}
				}
				writer.write("\n");
		    }
		} catch (IOException e){
			e.printStackTrace();
		} finally {
			   try {
				writer.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}