Heuristics for 8-tile puzzle