Robot learns skills through trial and error, like you do