isValidClick, to find click is valid to move cells