added renderThread and GameWindow