added minimal Gameloop and shouldClose function to WindowClass