A flowchart illustrates how several cells form a mutually inhibiting loop to allow for sensory inputs and internal states to output situationally appropriate behavior