Create .defineScene and .enterScene functions

This patch splits the functionality of scene into two functions: defineScene and enterScene.