code: private function getCost ($x, $y)
  	{
  		return isset ($this->map[$y]) && isset ($this->map[$y][$x]) 
  			? $this->map[$y][$x] : 0;
  	}
docs: Get the amount of points required to
  pass this point (or zero if impassable)