Scientists built an AI robot that’s figuring life out just like humans do