Heuristic function & Method for generating successor states