EA agrees $1.2 billion acquisition of Codemasters