code: private void linkSpaces(ArrayList spaces) {
  		for (int source=0;source<spaces.size();source++) {
  			Space a = (Space) spaces.get(source);
  			
  			for (int target=source+1;target<spaces.size();target++) {
  				Space b = (Space) spaces.get(target);
  				
  				if (a.hasJoinedEdge(b)) {
  					a.link(b);
  					b.link(a);
  				}
  			}
  		}
  	}
docs: Determine the links between spaces
  
  @param spaces The spaces to link up