modified invertScene() [NOT WORKING]