created a style resets function that is called when the play again button is clicked.