minor adjustment in AI by haveatry823 and Mystery333