modified delete function of score controller