fixed wrong instantiation in create method (AStar implementation)