Main.lua changes

Added base game loop