fixed minimax bug, and also ui display rendering lag bug;