private	void joinSets()
	 {
		  Random	rand = new Random();

		  /* Randomly join sets	together	*/
		  for(int i=1;	i<current.length-1; i+=2){	//checks	only at wall locations

				/*	make sure they	are eligible to be combined:
				 *		  they have	wall between then
				 *		  they are not	part of the	same set
				 *
				 *	then get	a random	boolean to pick if they	actually	get combine
				 */
				if(current[i] == SET_WALL && current[i-1]	!=	current[i+1]
						  && rand.nextBoolean()){


					 current[i]	= 0; //take	away the	barrier

					 int old	 =	Math.max(current[i-1],current[i+1]);
					 int next =	Math.min(current[i-1],current[i+1]);

					 /* combine	the two sets into	1 (the smallest numbered
					  * set)
					  */
					 for(int	j=0; j<current.length; j++){

						  if(current[j] == old)
								current[j] = next;
				}
			}
		}
	}