Added code to move masses picked up by the user to the front of the z-order to avoid weird layering issues, see #14.