--			local frame = Instance.new("Frame", game.Workspace.PlotDisplay.SurfaceGui)
--			frame.Name = tostring(x) .. "_" .. tostring(z)
--			frame.Size = UDim2.new(1/stepsX,0,1/stepsZ,0)
--			frame.Position = UDim2.new(x/stepsX,0,z/stepsZ,0)
--			frame.BackgroundColor3 = Color3.new(0,1,0)

		end
	end
end

local function nodeInList(list, node)
	for _, otherNode in pairs(list) do
		if node.X == otherNode.X and node.Z == otherNode.Z and otherNode.f <= node.f then
			return true
		end
	end
	return false
end
