Move ai action limit check

.. to prevent possibility of ai moves completing during player turn.