Adding debug info and fixed bugOnly the first edge was explored because of a misplaced statement