public void Link(Square neighbour, Direction dir) { }
private void SetLink(Square square, Direction dir, int x, int y) { int dirX = (width + x + dir.DeltaX) % width; int dirY = (height + y + dir.DeltaY) % height; Square neighbour = grid[dirX, dirY]; square.Link(neighbour, dir); }