Thanks for checking. The latter: Squares should be connected by a side, so moving either vertically or horizontally.