ai checks for winning space diagonally