Learning and solving many-player games through a cluster-based representation