public void run(){
		if(isRunning){
			System.err.println("findingLinks");
			try {
				String endpoint = "";
				if(isRedditGal(gal)){
					endpoint = "https://api.imgur.com/3/gallery/r/"+gal;
				}else if(isAlbum(gal)){
					endpoint = "https://api.imgur.com/3/album/"+gal+"/images";
				}else{
					endpoint = "https://api.imgur.com/3/gallery/search?q="+gal;
				}
				ArrayList<String>foundLinks = apiGetLinks("cdee2b1e3c354ec", endpoint);
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
	}