Added the isAITurn method