refactored the data to all be in one large object and changed functions to not use switch statements