SKSpriteKit remove node stored in array
<p>So I have an array holding references to all my tiles in the game, and on a click I want to loop through and destroy any tiles that are adjacent to one another. I already have a function that checks for adjacent tiles and stores which ones should be deleted in my checkedTiles array of Bools. I then want to loop through this array and delete any nodes from my blocks array(which holds the references to the tiles) where checkedTiles is true. I thought this would work but blocks[col][row].removeFromParent() doesn't actually remove the node. Any ideas/suggestions for accomplishing this? Any help would be greatly appreciated. Thanks!</p>

<p>--blocks and checkedTiles are initialized elsewhere in the program.</p>

<pre><code>var blocks: Array&lt;Array&lt;SKSpriteNode&gt;&gt; = []
var checkedTiles: Array&lt;Array&lt;Bool&gt;&gt; = []

for col in 0..&lt;numCols {
    for row in 0..&lt;numRows {
        if checkedTiles[col][row] == true {
            print("removing tile")
            blocks[col][row].removeFromParent()
            checkedTiles[col][row] = false

        }
    }
}
</code></pre>