A Behavior Selection Mechanism based on the Interaction between Sensory and Motor Information Processing