private void memberRun() {

    // setup time variables
    double now = System.nanoTime(), then = now, delta = 0;

    loops = 0;
    double frameTimer = 0;
    isRunning = true;
    while(isRunning) {

      now = System.nanoTime();

      // We get time in a given amount of nanoseconds, we convert to seconds here.
      delta = (now - then) / 1000000000.0;

      gameStateManager.update(delta);
      EventManager.processEvents();
      
      Renderer.renderScene();
      
      // Wannabe fps meter.
      ++loops;
      frameTimer += delta;
      if(frameTimer >= 1.0) {
        Display.setTitle("Zombees!   FPS: " + loops);
        loops = 0;
        frameTimer = 0.0;
      }

      // Fire a close window request event if the user presses escape or clicks the X!
      if(Keyboard.isKeyDown(Keyboard.KEY_ESCAPE) || Display.isCloseRequested()) {
        EventManager.pushEventDirect(new WindowCloseRequestEvent());
      }

      then = now;
    }   
  }