Updated BranchPrediction to actually scan memory

and not just pretend to look like code that would work.