Main Completed

Minus any cosmetic changes later on, Main.lua is finished!