Create main.cpp

main loop