Opinion formation models based on game theory