Weird array deletion
Trying to recurse
Finally got everything working