The Curious Mind of AI: How Attention and Bias Shape Its Thinking