Added beam search (commented out) and flipped adjectives and nouns