Variable Structure Behavioural Controller for Multi-agent Systems