A mean field games model for finite mixtures of Bernoulli and categorical distributions