var textAdventureApp = angular.module('textAdventureApp', []);

textAdventureApp.controller('textAdventureCtrl', function ($scope, $http) {
	function updateCurrentPaths() {
		console.log("updateCurrentPaths");
		$scope.adventure.currentPaths = [];
		for (var i = 0; i <= $scope.adventure.paths.length - 1; i++) {
			if($scope.adventure.paths[i].round === $scope.adventure.currentRound) {
				$scope.adventure.currentPaths.push($scope.adventure.paths[i]);
			}
		};
	}
	$http.get('adventure.json').success(function(data) {
		console.log("json get");
		$scope.adventure = {
			adventureName: data.adventureName,
			adventureDescription: data.adventureDescription,
			currentRound: 1,
			currentPaths: [],
			playerAlive: true,
			paths: data.paths
		}
		updateCurrentPaths();
	});
	$scope.pathClick = function (id) {
		console.log("pathClick");
		for (var i = 0; i <= $scope.adventure.paths.length - 1; i++) {
			if($scope.adventure.paths[i].id === id) {
				if ($scope.adventure.paths[i].death) {
					$scope.adventure.playerAlive = false;
				}
			}
		};
	}
	$scope.startOver = function () {
		console.log("startOver");
		$scope.adventure.currentRound = 1;
		$scope.adventure.playerAlive = true;
		updateCurrentPaths();
	}
});
@@ -1032,16 +1032,128 @@
  false;%0A
+%09%09%09%09%7D else %7B%0A%09%09%09%09%09$scope.adventure.currentRound = $scope.adventure.currentRound + 1;%0A%09%09%09%09%09updateCurrentPaths();%0A
 %09%09%09%09%7D%0A%09%09

fix it so you can go to the next round