almost got A* to use exploration goals