Fix bug in trapfunc sinkhole

I think it tries to iterate over all the adjacent squares.