I added a reset button and lose function