Merge implementation of the implementation of the array and isNeighboringSpace

Null