Trying to make one addWord function. Some parts work. Need to debugg and improve.