deletes some of my stupid lines and adds the somehow deleted hashtable back for Kruskals