Robots learn how to make decisions, think for themselves