Fixed bug where AI was not recognizing that two states had same values.