added 'coward' behaviour to ai module