FEATURE: add MASK variable to pGrd structure; use to set cells as inactive