Coped A* script