added addWordHorizontal method; works, but still have to fix the indexOutOfBoundsException