public void onEndScreen() { MenuPopup = null; PopulationPopup = null; // close any open windows for (Element tempElement : windows.getElements()) { nifty.removeElement(screen, tempElement); } updatables.clear(); System.out.println("onEndScreen"); }