New class to deal with logic, splitting it out from the dataC
Updated the classes to use the new logic class (controller)