8 puzzle solver using A*