Impact of determinism on mental health