Fixed comments and code. Simple misplaced tiles heuristic now works correctly.