Added code to move shape to front of its current layer when clicked on.