move functions around
add comments about zoomWindow vars, separate grid drawing