The “Engine” behind btif consists of some loose Javascript code inside app.js. The main role of the engine is to handle navigation between scenes. Saving/loading, theming, etc. are handled by separate systems.