Pātuhitia tēnei: Links Between Beliefs and Cognitive Flexibility