A dirty script to practice listening to common English words in CW

I found this nice list of most common 1000 English words, so with the help of the cw program from the unixcw package in Debian, I just wrote this dirty script to play a random word from this list and echo it after 5 seconds.

#!/bin/bash

WORDSFILE=1-1000.txt

while true
do
    # select a random word from the top 1000 english words
    word=$(shuf "$WORDSFILE" | head -n1)

    sleep 1
    echo "$word" | cw -w 20 -e
    sleep 1
    echo "$word" | cw -w 20 -e
    sleep 1
    echo "$word" | cw -w 20 -e
    sleep 1

    read -p "Type in the word: " guess

    if [ "$guess" == "$word" ]
    then
        echo "The word is indeed $word"
    else
        echo "Sorry, you guessed it wrong, the correct word is: "
        echo $word | cw -w 20
    fi
done