finished main gen loop

still need local constraints and global goals