implemented the replay button