player rating function added