checking and mating updated