added basic drag-n-drop functionality for squares and triangles.