Action and motor skills: Adaptive behaviour for intended goals