completed problem 4 from problem set 3 which is a function to play a hand of the word game, i added some minimal stuff to the problem 5 section just so i could call the program to test the function from problem 4