draw a grid