Major code refactoring - I changed how the major functions that automate filling, compressing, and shearing. The code switches from the states in a much clearer fashion and fills better.