Snap to grad

Other small changes - window width and height changed, started line
drawing code (for grid)