Just a little mess about whilst I can't sleep

Right, so it’s nearly 3 am, and I cannot sleep, so I thought I would make a little useless program for Windows… Put simply, it basically asks “How can I help?” If you type “secret,” it will run the tree c:/ command on Windows. For those that don’t know, this command displays an itemized view of your C:/ drive. It looks pretty cool even though it’s literally useless. If you type anything else, the program will exit out. Again, this was just something I made because I can’t sleep and needed something to do. :D

As a side note… I know the bool is not needed at all, but it gave me something to do…

#include <iostream>
#include <Windows.h>

void stage2();

int main();
bool isActive = false;
std::string input = "";

void nope();

void check() {
    while (isActive == false) {
        std::cout << "Checking ID" << std::endl;
        isActive = true;
        if (isActive == true && input == "secret") {
            isActive = false;
            stage2();
        } else {
            std::cout << "Nope... There is no access... Exiting";
            exit(9);
        }
    }
}

void stage2() {
    std::cout << "This works" << std::endl << "\n \n \n \n";
    system("tree c:/");
    main();
}

void failed() {
    check();
}

void nope() {
    std::cout << "No Access!";
    exit(999);
}

int main() {    
    std::cout << "How can I help you?" << std::endl;
    std::cin >> input;
    
    check();
}