Robot trained in a game-like simulation performs better in real life