finalized program to show word at end of game if player does not guess