3rd dimension (z value) is not used right now, but indices were updated to support it. I should really make a Point class... Using a sprite image instead of drawCircle noticeably improves performance.