added getSecretWord function