Getting geometry to stick to grid?

By the image you have changed your Grid Setting to 1 quadrant. Try changing it to the standard 10, as says. you can change this by the setting of the grid image at the top right of the Viewport.

if you are finding it a pain now to get it right. go to one of the other perspectives. select the piece of Geometry, and then right click on one of the corners. this will align it back to the grid. (only do this once you have set the Grid snapping to the setting you want it at.)