changed line drawing algorithm to bresenham all integers
Updated draw function to use previous frame to optimize drawing