generate random secret code at start
refactor generate_secret_code to not use temp variable
exit if match