The brain, learns, from learning, it developes ideas.. example...
One brains evolution---
Finger pressed onto a burning oven top=pain
Learned:oven brings pain
Finger put into flame=pain
Learned:The same pain from flame and oven, common factor HOT,
Hot things bring pain, don't touch
While these are two different circumstances, you need a common factor to learn why the pain happens...
in the end if you want AI, you will need decades of programming.. once you have enough programing with all the knowledge of mankind.. well.. why need AI? you just gave the computer all the common sense, intellegence, responce it will ever need. Something new comes along, update the software. This is probably the closest thing to AI we will ever get.