Search engine debug

i think i am done adding psuedocode