refactored brain, allowed for selection of bigram vs trigram brains