Move ai action limit check

.. to prevent possiblity of ai moves completing during player turn.
Merge pull request #621 from cfailde/overlap

Move ai action limit check