Totally rewrote structs, program working again.