Galliani: 'Milan had to play this way'