Checks for winner after AI makes a move