Created a debug grid renderer and made changes necessary for it to work