void estimate(Node target)
	{
		if (target == null) // Dijkstra
			h = 0;
		else
		// A*
		{
			float dx = target.x - x;
			float dy = target.y - y;
			h = (float) Math.sqrt(dx * dx + dy * dy);
		}

		f = g + h;
	}