refactored updateGUpper to use findIntersect function
removed gl, replaced with g[left, ] for consistency in  updateGUpper