added replay button and reset conditions