when guess word correctly

ends the game when the word is guessed correctly