Made mazetest work with canvas renderer.