Update main.cpp

I add all of the basic stuff that handles the window and stuff like that.