At what stage of cognitive development is it consistent for a six-year-old child to engage in magical thinking and make connections between things that are completely unrelated?