Main.cpp

The main function with the main loop.