How is a player's ranking determined?