Merged lua/main.lua and lua/gui/main.lua