Implemented restarting the process with new random solutions