Fix bug when rendering highlighted squares at far right and bottom of
screen