Add a breakpoint at the remove node, is the item being removed the same as the one in the pool of exits?
if there not exactly the same it will return false
It would appear your trying to make a dungeon generator This may help
The code you have there looks reasonable, find and remove index may work better than just remove if for whatever reason they are not exact matches