Temporal Difference Learning for Heuristic Search and Game Playing