Prevent any moves that end in check.