Complex sentence: They cautiously look around each time the flag changes, hoping to somehow spot the other, but in vain they do not, as they are alone at the mailbox.
Split into simpler sentences: They cautiously look around each time the flag changes, hoping to somehow spot the other. It is in vain as they are alone at the mailbox.