Implemented circle drawing with snap-to-grid.