a-star implemented