Edited main.cpp to openGL