chooseWord random part

put the srand(time) part into the chooseWord function so that the word
from the file is chosen randomly. also #include <ctime> in the header
file