A Biomimetic Control Method Increases the Adaptability of a Humanoid Robot Acting in a Dynamic Environment