added addWordDiagonal method