private void checkAccess(){
		boolean tested=true;
		if(!(gamePath.equals("") | gamePath==null)){
			File f = new File(gamePath); //Check if we have read and write access
			if(!f.canWrite() & !f.canRead()) {
				tested=false; //if no access
				con.log("Severe","Failed to write and read");
			}
		}
		
		try {
			FileWriter file = new FileWriter(gamePath+"/testingmclauncherwriteacess.txt");
			file.write("Testing Mclauncher");
			file.close();
		} catch (IOException e) {
			tested=false; //failed to write
			con.log("Severe","Failed write access.");
		}
		
		if(!new File(gamePath+"/testingmclauncherwriteacess.txt").exists()){
			tested=false; //failed to read
			con.log("Severe","Failed read access.");
			
		} else new File(gamePath+"/testingmclauncherwriteacess.txt").delete();
		
		if(tested) {
			con.log("Log","Access to read and write allowed.");
		}
		else {
			JOptionPane.showMessageDialog(null, "McLauncher does not have access to read or write files.\nMclauncher will not work without access.");
			//System.exit(0);
		}
	}