use heuristics and bfs to solve 8/15 puzzle