Directed Graph almost working - bug adding extra node and strange arrow
fixed event listener bug (eventually new buttons will be generated anyways, but this fixes the temporary version)