Refactored to include words in wordBoxes and characters in characterBoxes