Rewrote the search

Changed to NegaMax and fixed hash inclusion issues