A system to rate NBA players