Changed how the grid is drawn, to hopefully speed it up a bit