Added grid drawing to SDL interface.