How chromosomes become prepared for segregation in mitosis