Since you don’t have issues with less players, maybe avoiding such a tedious loop will help, see this post for details