Implemented neighbors and legalNeighbors