building code sorta working, still having trouble determining to build a new stockpile...