 			return node.walkable;
 		};
 		
-		public function setWalkable(pIndexX:uint, pIndexY:uint):void {
+		public function setWalkable(pIndexX:int, pIndexY:int):void {
 			var node:Node     = _pathgrid.take(pIndexX, pIndexY) as Node;
 
             if (!node) {

			_closedNodes.add(node);
		};
		
		public function findPath(pStartX:uint, pStartY:uint, 
								 pEndX:uint, pEndY:uint, 
								 pHeuristic:Function = null):Vector.<Node> {
			if (algorithm.findPath(_pathgrid, pHeuristic,
								   _pathgrid.take(pStartX, pStartY) as Node,

			_closedNodes.remove(node);
		};
		
		public function setUnWalkable(pIndexX:int, pIndexY:int):void {
			var node:Node     = _pathgrid.take(pIndexX, pIndexY) as Node;

            if (!node) {
