Move inactivity code to scene.js