Moved everything to Main class

(-_-)