Some cheats can be used in the AIs turn, yes, such as auto_win which is often a way to get past problems like this one.