Update main.cpp

More recursive