optimize Duel AI by haveatry823
minor adjustment of MingShi AI