Update main.lua

Split the bot in three different files