Updated grid cell logic in example project