illegal moves fixed for automated AI runs