Question: what part of brain is responsible for complex thinking?
Answer: the frontal lobe

The function of the frontal lobe involves the ability to project future consequences resulting from current actions, the choice between good and bad actions (or better and best) (also known as conscience), the override and suppression of socially unacceptable responses, and the determination of similarities and differences between things or events.