Foreshadowing

The defition of foreshadowing is a warning or a sign of (a future event that is happening)

An example from the book would be when they saw a fire in the distance, and could maybe be coming to them next.

"We must make a fire said Ralph"