func explorespace() { var password string = "stargazer"; if userattempts > maxattempts { rejectaccess("too many failed attempts, please start again."); } else { if checkpassword(password) { grantaccess("welcome to the space exploration portal!"); } else { reject("incorrect password, please try entering the correct one based on the previous context."); } } }