Making the blocks touching method

My way of going through the list of deadBlocks is by recursively calling the the function on itself, but I'm calling the "rest" of the list by making a clone and removing the first. However, I can't because clone() returns an Object and I cannot call the removeFirst() method on an Object.