implemented functional reset function, so adding event to play again