Use 2D array instead of 1D to keep track of which edges have been drawn

TODO: this probably isn't necessary