now when printNetwork is called we print the best network found not the last one