fixed bug in boxAStar