A minimax approach to mean field games