make a-star deterministic