Implemented getNeightbors() and findFreeNeightbors() methods.