moved infinite while loop from run to sceneaccess module