Allow 50,000 iterations of A*