A clock signal can help to avoid glitches by requiring that all logic transitions in the circuit happen synchronously, i.e., at the times of a clock transitions. Then you don't get little overlaps in logic signals when they arrive a bit early or late due to variations in gate delays. We'll see more examples of clock use soon.