Working, but doesn't print word with maximum number of letters, need fix