//resets all objects to initial states, takes the number of cave as parameter public void startGame(int cavenum) { //initializes fields map = new Map(cavenum); render = new InGameRenderInfo(); trivia = new Trivia(); scores = new HighScore(); player = new Player(); reason = 0; loadFact(); //loads cave pathways into render to be displayed render.CaveConnections = map.getConnections(); //updates render to be displayed updateRender(); }