private void createLogFile(Solution solution) {
		FileWriter writer;
		File logFile = new File((N * N - 1) + "Puzzle"
				+ algorithm.getClass().getSimpleName() + "Log.txt");
		if (!logFile.exists())
			try {
				writer = new FileWriter((N * N - 1) + "Puzzle"
						+ algorithm.getClass().getSimpleName() + "Log.txt",
						true);
				writer.append("#" + (N * N - 1) + " Puzzle\n"
						+ "#seed;scrambles;moves;nodes\n");
				writer.append(seed + ";" + scrambles + ";" + solution.getSolutionPath().size() + ";"
						+ solution.getNodeExplored() + "\n");
				writer.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		else {
			try {
				writer = new FileWriter((N * N - 1) + "Puzzle"
						+ algorithm.getClass().getSimpleName() + "Log.txt",
						true);
				writer.append(seed + ";" + scrambles + ";" + solution.getSolutionPath().size() + ";"
						+ solution.getNodeExplored() + "\n");
				writer.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}