Better solution is generated

The function now iterates till the difference between iterations is
small.