public bool isOpen(AStarNode node)
 {
     return(Array.IndexOf(_opened, node) > -1);
 }
 public void addToOpenList(AStarNode node)
 {
     _opened[_numOpened++] = node;
 }
 public void addToClosedList(AStarNode node)
 {
     _closed[_numClosed++] = node;
 }
 public bool isClosed(AStarNode node)
 {
     return(Array.IndexOf(_closed, node) > -1);
 }