Repeated play of potential games