added A* array init with gamlib-ai
refactored init of A* array