Introduce concept of 'engine' table with hooks for eg events occurring, game loading, etc. Make 'main.lua' the only file explicitly loaded from C++. Complete fairly satisfactory high score menu.