public void EndTurn() {
		players.Base ply = Game.player.get(currentplayer);
		for (units.Base unit : Game.units) {
			unit.acted=false;
			unit.moved=false;
		}
		currentplayer++;
		if (currentplayer>=totalplayers) {currentplayer=0;day++;}
		ply = Game.player.get(currentplayer);
		if (day!=1) {
			ply.money+=buildingmoney*Buildingcount(currentplayer);
		}
		for (units.Base unit : Game.units) {
			if (unit.owner == currentplayer && unit.health<unit.maxhp && unit.bld!=-1) {
				unit.Medic();
			}
		}
		Game.pathing.LastChanged++;
	}