Head lights flickering

Yep. The first thing to check is the battery wires. Sometimes the clamps work loose from vibration and then start making poor contact. Your description is a classic symptom of a loose wire.