Re-implemented ability to select and de-select a given shape using a mouseclick.