added heuristic for both players