Implement neighbors
Reformat
Add unit tests
Implement legalNeighbors