changed print-statement containing 'end-flag' in wordlist and trebor