added some A-star stuff