Remove the clicked field of the SceneObject and instead use a clickedObject variable to keep track of which object was just clicked.