Changed drawQuad to drawCuboid