public void setScreen(GuiScreen screen) {
   if (currentScreen != null) {
     currentScreen.stop();
   }
   currentScreen = screen;
   currentScreen.setSize(WIDTH, HEIGHT);
   currentScreen.start();
 }
  public void render() {
    if (Display.wasResized()) {
      WIDTH = Display.getWidth();
      HEIGHT = Display.getHeight();
      if (currentScreen != null) {
        currentScreen.setSize(WIDTH, HEIGHT);
      }
    }
    GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);

    if (currentScreen != null) {
      currentScreen.render();
    }
  }
 public void update(int tick) {
   if (currentScreen != null) {
     currentScreen.update(tick);
   }
 }