What were they doing when it began to rain?
They were playing computer games when it began to rain.
They were playing chess when it began to rain.
They were playing football when it began to rain.