Using the Render class the initialization of the screen happens within the Render constructor method instead of in main.cpp