What can the brain teach us about building artificial intelligence?