In this project, the square automatically snaps to the grid. Click the square to switch from a 1x1 (20x20 pixel) square to a 2x2 (40x40 pixel) square and vice versa. -- The code can be used without credit, but I would appreciate giving credit.