Click handler work. Determining if the next move is valid.