--[[
local TextBoxPlus = require(script.TextBoxPlus)


local start = TextBoxPlus.new(Instance.new("TextBox"))
local goal = TextBoxPlus.new(Instance.new("TextBox"))


--local DefaultNumber = 123

--local function Reset() end
--local function FullReset() end


goal:SetDefaultConvert(function(Text)  
	local numbered = tonumber(Text or goal.Object.Text)
	
	if numbered and numbered ~= start:Convert() then
		return math.clamp(numbered, 1, 600)
	end
end)

start:SetDefaultConvert(function(Text)  
	local numbered = tonumber(Text or start.Object.Text)

	if numbered and numbered ~= goal:Convert() then
		return math.clamp(numbered, 1, 600)
	end
end)

start:Filter(function(number)
	if not number then
		task.defer(Reset)
		return DefaultNumber
	end
end)
-- :Finally() will be called only after the Filter function has.

[Functions]

:Then(fn) --> *Cycle*
:Finally(fn) --> Void
:Catch(fn(error)) -> *Cycle*

]]


local tbl = {
	{1, 5},
	{2, 2},
	{3, 4},
	{4, 1},
	{5, 3}
}

local rm, pri = Remake.new(), priorty.new()

local s = os.clock()
for _, obj in tbl do
	rm:Push(obj[1], obj[2])