For example, imagine a hockey forward speeding across the ice towards the goal. As the forward approaches, he must dodge the other team's defense and find an opening to shoot the puck past the goalie. The forward sees two openings. Within a split second, neurons in the hockey player's motor cortex fire and encode the muscle commands needed to take both of the two possible shots. Both plans of attack are primed and ready to go. The forward decides on one target, but suddenly, one of the other team's defenders appears out of nowhere, blocking the shot. Without missing a beat, the forward's sensorimotor system pivots to the already-encoded plan B. He takes the shot.
Read more at: https://medicalxpress.com/news/2017-02-brain-ready.html#jCp