Added grid drawing method