 				else // newNode should go to the right of currentNode
 				{
 					if (newNode.index > rightTraversalNode.index) // will only happen once, when rightTraversalNode == currentNode
-					{
+					{
+						/*
+						// for debugging
 						if (rightTraversalNode != currentNode)
 							throw new Error("Unexpected error. rightTraversalNode != currentNode");
+						*/
 						
 						if (rightTraversalNode.right != null)
 						{

				if (newNode.index < currentNode.index) // newNode should go to the left of currentNode
				{
					if (newNode.index < leftTraversalNode.index) // will only happen once, when leftTraversalNode == currentNode
					{
						if (leftTraversalNode != currentNode)
							throw new Error("Unexpected error. leftTraversalNode != currentNode");
						
						if (leftTraversalNode.left != null)
						{

				var prevPrevGridTest:uint = 0;
				var prevGridTest:uint = 0;
				var gridTest:uint;
				var stackPos:int = 0;
				var node:BLGNode;
				var operation:int;
