Fixed indexing in renderArray, beef up the GRID constant a bit, add fn
to calculate fog based on the VISITED array.