buttonRandom click event.
Created method for checking for unsaved changes.