Added hit detection for AbstractShapes and selection capabilities.

Press Shift key to toggle between drawing and editing mode.