How Your Brain Predicts the Future (and Why It Sometimes Fails)