Rebuilt the prepare_for_planting code to be one instead of two functions, much cleaner and easier to understand, and less buggy.