Allow reversible grids

Fixes #166