public void beginTurn() {
		if (!autoGame) {
			autoGame = true;
			for (int i = 0; i < numPlayers; i++) {
				if (!players[i].isAI() && players[i].isLiving())
					autoGame = false;
			}
		}
		
		playerPnlHash.get(activePlayer).setActive(true);
		
		int troopCount = Math.max(map.getTerritoryCount(activePlayer) / 3, 3);
		log(activePlayer.name + " gets " + troopCount + " troops for " + map.getTerritoryCount(activePlayer) + " territories.");
		
		int extra = 0;
		if (activePlayer.hasSet())
			extra += playSet();
		troopCount += extra;
		
		state = State.DEPLOY;
		
		conqueredTerritory = false;
		fromTerrit = null;
		toTerrit = null;
		
		actionBtn.setText("End Attacks");
		actionBtn.setEnabled(false);
		autoPlayBtn.setEnabled(true);
		
		Continent[] conts = map.getContinents();
		for (Continent cont : conts) {
			if (cont.hasContinent(activePlayer)) {
				troopCount += cont.getBonus();
				log(activePlayer.name + " gets " + cont.getBonus() + " troops for holding " + cont.name + ".");
			}
		}
		activePlayer.updateStats(Player.BONUS, troopCount - extra);
		message(activePlayer.name + ", you have " + troopCount + " troops to place.");
		deployNum = troopCount;
	}