changed input for KeepTheBest function in Loop
changed input for KeepTheBest in Loop