local function IsPathable(i, j)
if explicitlyUnpathable[i][j] then
return false
elseif explicitlyPathable[i][j] then
return true
end
local x, y = worldMinX + (i - 0.5)*64, worldMinY + (j - 0.5)*64
SetItemPosition(testItem, x, y)
local itemX, itemY = GetItemX(testItem), GetItemY(testItem)
return x - itemX <= 1 and x - itemX >= -1 and y - itemY <= 1 and y - itemY >= -1
end