some of the challenges are real , some of them are illusory , and all of them are programmed with random or hidden variables : a rock appears under your foot as you 're trying to dodge a series of spears , or a swarm of hornets is stirred up by the particle blast you 've just diverted into a tree .