fixed calling explore loop in right place when exits are not null, now need to fix recursion when exits are null, somehow initiated another endless loop