added some logic and a mini-word list