Replacing calls to Mesh::surfaceClosed() with Mesh::periodicY()

Mainly a cosmetic change to be consistent with periodicX