Choose the correct form of the verb in one of past tenses:
We _______________ tennis for half an hour when it started to rain.
had been playing
had played
played
were playing