trying to refactor the helper method
somewhat working
Merge pull request #2 from adolfo0620/checkword

Checkword