Created favoriteNumber, checkLock, and canIGet functions