update class for line of the table depending of the score