fix bug in drawLine
rudimentary spin manipulation and rendering