public void updatePanel() {
		continueBtn.setText(Game.TURN_END_TEXT[g.getCurrentTurnPart()]);

		int turnPartEnding = g.getCurrentTurnPart() - 1;

		if (turnPartEnding == -1) {
			
			List<Integer> ints = resources.getSelectedResources();
			int oldPlayer = g.getCurrentPlayer() -1;
			if (oldPlayer == -1) oldPlayer = g.getNumPlayers() - 1;
			System.out.println("player "+ oldPlayer);
			for (int i = 0; i < ints.size(); i++){
				g.getPlayer(oldPlayer).removeResource(ints.get(i));
			}
			
			doNewTurnThings();
			dice.turnPartIsThis(true);
		} else if (turnPartEnding == Game.ROLL_DICE) {
			dice.turnPartIsThis(false);
			// dice recorded, so update resources
			updateResources();
			workersLeft.setText("Workers left: "+g.getPlayer(g.getCurrentPlayer()).getWorkersAvailable());
		} else if (turnPartEnding == Game.FEED_DISASTERS) {
			// dice recorded, so update resources
			g.feedCitiesProcessDisasters();
			cities.turnPartIsThis(true);
			monuments.turnPartIsThis(true);
			updateResources();
			updateTotalScore();
		} else if (turnPartEnding == Game.DEVELOPMENT) {
			List<Integer> ints = resources.getSelectedResources();
			developments.buyDevelopment(ints);
			developments.turnPartIsThis(false);
			updateTotalScore();
			updateResources();
			resources.updateTurnMoney();
		} else if (turnPartEnding == Game.BUILD) {
			cities.buyWorkers();
			cities.turnPartIsThis(false);
			developments.turnPartIsThis(true);
			monuments.buyWorkers();
			monuments.turnPartIsThis(false);
			workersLeft.setText("Workers left: 0");
			updateTotalScore();
		} else if (turnPartEnding == Game.DISCARD){
			
		}else
			updateResources();
	}