add print flag
update explore cycle
print nextGoal even if explore=false