finished and thoroughly checked addWordVertical