Check validity of move.