Added  get out check feature to heuristic

cycles through the list of all possible moves and returns the first that
gets us out of check. Still need to fix bug that has the heuristic make
a move that gets us in check... that shouldn't be allowed...