added client-side validation for game rank not exceeding number of players.