Each action contains its AI code