Opinion dynamics and stubbornness through mean-field games