corrected drawCube()