reverting to origin determineDx function. small modification to changePizzaSizes. moved dx and newwidth calculations outside of loop b/c they can be calculated once and then applied to all random pizzas.