private bool IsValidGridPos() { foreach (Transform child in transform) { Vector2 v = Playfield.RoundVec2(child.position); if (!Playfield.IsInsideBorder(v)) { return(false); } if (Playfield.grid[(int)v.x, (int)v.y] != null && Playfield.grid[(int)v.x, (int)v.y].parent != transform) { return(false); } } return(true); }