Included table assignment in main search loop. Ass3.Prob2.