Changed grid line method so the number of lines in the grid can be
changed