Function onclick

    Fires when the user clicks the left mouse button on the object