moved all the drawing stuff to drawing.lua