(refac) Rewritten get player matches query