Seol mar théacs é seo: Optimal decision making in the cortico-basal-ganglia circuit