added parameter validation and fixed syntax in MinefieldRow