Question: What was being built that caused unpremeditated fighting on each side?
Sentence: For months each side had been building forward rifle pits and defensive positions, which resulted in many skirmishes.
Answer in sentence: yes