Cortex–basal ganglia interaction and attractor states