fixed heuristic function

should not have taken a player input