Layered learning for a soccer legged robot helped with a 3D simulator