Still finding the pointer error, lines 47 and 173 are suspect
Found the memory Error