private int centerAndValueOn() {
    CABot3Net factNet = (CABot3Net)getNet("FactNet");
    CABot3Net valueNet = (CABot3Net)getNet("ValueNet");
    boolean valueOn=false;
    boolean centerOn=false;
    int result = 0;

    for (int i = 0; i < valueNet.getSize(); i ++) {
      if (valueNet.neurons[i].getFired()) valueOn = true;
    }
    //check the center fact
    for (int i = 520; i < 560; i ++) {
      if (factNet.neurons[i].getFired()) centerOn = true;
    }
    if (valueOn && centerOn) return 1;
    else if (valueOn || centerOn) return 2;
    else return 0;
  }