added the updated loss function into luck section and changes all instances of scoring to loss in luck section