added heuristic scoring to recursive board