validates moves