draw lines with bitmaps
clean version, lines/dots with collision detection