Fix replay function and Add  #replayButton.hide();