copy draw cube code to GlChip.draw() and GlField.draw()