Update main.cpp

delete some code