Moved OpenGL window init into separate class