reworked AI turn