Lines working
drag/switch rectangles working