Helping robots practice skills independently to adapt to unfamiliar environments