Added debug grid rendering