I replaced ChallengeUser with player because when it was ChallengeUser there after the filter process the number of players that could be challenged by the current player was computed wrong. I didn't know why so i tried to change that and it worked well when i replaced ChallengeUser with player.