The problem in the sentence is with the word "had," which makes it past perfect with completed action in the past. The sentence begins with "before long," which denotes that something began after a short while. Then there is the use of "had," which puts the next action in the past, e.g. "They had begun to play football when the lights went out."