moved removing inactive players to separate loop